1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-07 21:16:48 +00:00

fixes to custom land list PTM settings saving

This commit is contained in:
Zeno Rogue 2024-07-11 18:24:15 +02:00
parent a08a091a34
commit 0f8e95d481
2 changed files with 4 additions and 1 deletions

View File

@ -1727,6 +1727,8 @@ EX void initConfig() {
param_i(custom_land_treasure[i], "customland" + its(i) + "t", 100)->be_non_editable();
param_i(custom_land_difficulty[i], "customland" + its(i) + "d", 100)->be_non_editable();
param_i(custom_land_wandering[i], "customland" + its(i) + "w", 100)->be_non_editable();
param_i(custom_land_ptm_runs[i], "customland" + its(i) + "r", 100)->be_non_editable();
param_i(custom_land_ptm_mult[i], "customland" + its(i) + "m", 100)->be_non_editable();
}
}

View File

@ -1152,7 +1152,8 @@ EX void load_mode_data_with_zero(hstream& f) {
if(!use_custom_land_list) throw hstream_exception("PTM defined in a non-custom mode");
int lt = f.get<int>();
for(int i=0; i<lt; i++) {
custom_land_ptm_runs[i] = f.get<char>();;
custom_land_ptm_runs[i] = f.get<char>();
custom_land_ptm_mult[i] = f.get<char>();
}
break;
}