mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +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