1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-08 15:09:54 +00:00

fixed loading used model

This commit is contained in:
Zeno Rogue 2024-05-29 13:52:02 +02:00
parent 448397ab1d
commit c16c064b21

View File

@ -949,8 +949,10 @@ EX namespace models {
dynamicval<function<bool()>> ds(auto_restrict); dynamicval<function<bool()>> ds(auto_restrict);
auto_restrict = [&p] { return &vpconf == &p; }; auto_restrict = [&p] { return &vpconf == &p; };
if(&p.model == &pmodel) if(&p.model == &pmodel) {
param_custom_int(pmodel, parameter_names(pp+"used_model", "projection|Poincare|Klein|half-plane|perspective"), menuitem_projection, '1'); auto par = param_custom_int(pmodel, parameter_names(pp+"used_model", "used model"), menuitem_projection, '1');
par->help_text = "projection|Poincare|Klein|half-plane|perspective";
}
else param_enum(p.model, parameter_names(pp+"used_model", sp+"used model"), mdDisk); else param_enum(p.model, parameter_names(pp+"used_model", sp+"used model"), mdDisk);
param_matrix(p.mori().v2, pp+"mori", 2) param_matrix(p.mori().v2, pp+"mori", 2)