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:
parent
a08a091a34
commit
0f8e95d481
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user