mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
load_from on float also sets the current value
This commit is contained in:
parent
f61adc2865
commit
39ce564d40
@ -313,7 +313,9 @@ void bool_setting::add_as_saver() {
|
||||
}
|
||||
|
||||
void float_setting::load_from(const string& s) {
|
||||
*value = parseld(s);
|
||||
anims::animate_parameter(*value, s, reaction);
|
||||
if(reaction) reaction();
|
||||
}
|
||||
|
||||
void non_editable() {
|
||||
|
Loading…
Reference in New Issue
Block a user