mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
params now indexed by parameter_name, not by s
This commit is contained in:
parent
cc1cd5655d
commit
2d03e822e6
@ -370,7 +370,7 @@ EX float_setting *param_f(ld& val, const string p, const string s, ld dft) {
|
|||||||
val = dft;
|
val = dft;
|
||||||
u->add_as_saver();
|
u->add_as_saver();
|
||||||
auto f = &*u;
|
auto f = &*u;
|
||||||
params[s] = std::move(u);
|
params[u->parameter_name] = std::move(u);
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +421,7 @@ EX bool_setting *param_b(bool& val, const string s, bool dft) {
|
|||||||
val = dft;
|
val = dft;
|
||||||
u->add_as_saver();
|
u->add_as_saver();
|
||||||
auto f = &*u;
|
auto f = &*u;
|
||||||
params[s] = std::move(u);
|
params[u->parameter_name] = std::move(u);
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user