1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

ls:: landscape land structure

This commit is contained in:
Zeno Rogue
2024-03-21 20:15:45 +01:00
parent 6b723977dd
commit fdf83820f2
6 changed files with 40 additions and 5 deletions

View File

@@ -1004,6 +1004,10 @@ EX void save_mode_data(hstream& f) {
f.write<char>(5);
f.write<int>(randomwalk_size);
}
if(land_structure == lsLandscape) {
f.write<char>(6);
f.write<int>(landscape_div);
}
}
EX void load_mode_data_with_zero(hstream& f) {
@@ -1062,6 +1066,10 @@ EX void load_mode_data_with_zero(hstream& f) {
randomwalk_size = f.get<int>();
break;
case 6:
landscape_div = f.get<int>();
break;
default:
throw hstream_exception();
}