1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-26 08:56:59 +00:00

custom modes: load mode fully

This commit is contained in:
Zeno Rogue 2024-06-02 18:01:00 +02:00
parent 70747f938d
commit f80492f365

View File

@ -1453,15 +1453,9 @@ void enable_mode_by_code(modecode_t mf) {
} }
else { else {
ss.read(ss.vernum); ss.read(ss.vernum);
if(ss.vernum < 0xAA05) {
use_custom_land_list = false;
mapstream::load_geometry(ss);
}
else {
ss.write_char(0); ss.write_char(0);
load_mode_data_with_zero(ss); load_mode_data_with_zero(ss);
} }
}
mode_description_of[mf] = mode_description1(); mode_description_of[mf] = mode_description1();
} }
catch(hr_exception& e) { catch(hr_exception& e) {