1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +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);
auto_restrict = [&p] { return &vpconf == &p; };
if(&p.model == &pmodel)
param_custom_int(pmodel, parameter_names(pp+"used_model", "projection|Poincare|Klein|half-plane|perspective"), menuitem_projection, '1');
if(&p.model == &pmodel) {
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);
param_matrix(p.mori().v2, pp+"mori", 2)