1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-12 01:42:05 +00:00

ru:: fixed a bug in save map

This commit is contained in:
Zeno Rogue
2026-04-03 10:50:43 +02:00
parent bc37987e68
commit 911888eb0d
+3 -2
View File
@@ -65,8 +65,9 @@ void save_map(string fname) {
for(int y=0; y<room_y; y++) {
for(int x=0; x<room_x; x++) {
auto v = r.block_at[y][x];
if(v == int(wRogueWallHidden)) v = int(wRogueWall);
print(f, format("%c", (v & 7) == 7 ? 'b' : code_for[v>>3]));
auto vi = v >> 3;
if(vi == int(wRogueWallHidden)) vi = int(wRogueWall);
print(f, format("%c", (v & 7) == 7 ? 'b' : code_for[vi]));
}
println(f);
}