mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-20 16:37:40 +00:00
refactored the parameter (saver/setting) system
This commit is contained in:
@@ -1828,7 +1828,7 @@ EX void save_mode_to_file(const string& fname) {
|
||||
if(custom_welcome != "") println(f, "CMSG ", custom_welcome);
|
||||
|
||||
for(auto& ap: allowed_params) {
|
||||
auto& s = params[ap]->saver;
|
||||
auto& s = params[ap];
|
||||
if(s->dosave())
|
||||
println(f, ap, "=", s->save());
|
||||
}
|
||||
|
Reference in New Issue
Block a user