ls:: landscape land structure

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

No files matched your search

+8
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();
}