1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-26 15:12:48 +00:00

ru:: fixed a bug with destroying map when viewing other rooms

This commit is contained in:
Zeno Rogue 2025-05-17 15:17:20 +02:00
parent 578172b916
commit 9225602da3

View File

@ -149,9 +149,9 @@ void render_room_walls(room *r) {
int cc = c >> 3;
if(cc == wSecretPassage && r->at(x, y-1) == wWall) {
current_room->replace_block(x, y, wAir);
current_room->replace_block(x, y-1, wSecretPassage);
if(r == current_room && cc == wSecretPassage && r->at(x, y-1) == wWall) {
r->replace_block(x, y, wAir);
r->replace_block(x, y-1, wSecretPassage);
}
if((c & 7) == 0)