1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-16 14:47:39 +00:00

more guards

This commit is contained in:
Zeno Rogue
2020-08-03 23:25:08 +02:00
parent a49b10d2ad
commit 8173fc0504
3 changed files with 7 additions and 1 deletions

View File

@@ -430,6 +430,7 @@ EX namespace mapstream {
else
return dir;
}
#endif
EX void save_geometry(hstream& f) {
f.write(geometry);
@@ -599,7 +600,8 @@ EX namespace mapstream {
if(vernum >= 0xA810)
f.read(mine_adjacency_rule);
}
#if CAP_EDIT
void save_only_map(fhstream& f) {
f.write(patterns::whichPattern);
save_geometry(f);