From 0f8e95d481e1551c1fa9dd42fa7c595e9cbc86b7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 11 Jul 2024 18:24:15 +0200 Subject: [PATCH] fixes to custom land list PTM settings saving --- config.cpp | 2 ++ yendor.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index aba4e02f..67f9e38a 100644 --- a/config.cpp +++ b/config.cpp @@ -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(); } } diff --git a/yendor.cpp b/yendor.cpp index aa7b9eb2..a4dc45bb 100644 --- a/yendor.cpp +++ b/yendor.cpp @@ -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(); for(int i=0; i();; + custom_land_ptm_runs[i] = f.get(); + custom_land_ptm_mult[i] = f.get(); } break; }