mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 23:12:51 +00:00
ru:: fixed a bug with destroying map when viewing other rooms
This commit is contained in:
parent
578172b916
commit
9225602da3
@ -149,9 +149,9 @@ void render_room_walls(room *r) {
|
|||||||
|
|
||||||
int cc = c >> 3;
|
int cc = c >> 3;
|
||||||
|
|
||||||
if(cc == wSecretPassage && r->at(x, y-1) == wWall) {
|
if(r == current_room && cc == wSecretPassage && r->at(x, y-1) == wWall) {
|
||||||
current_room->replace_block(x, y, wAir);
|
r->replace_block(x, y, wAir);
|
||||||
current_room->replace_block(x, y-1, wSecretPassage);
|
r->replace_block(x, y-1, wSecretPassage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if((c & 7) == 0)
|
if((c & 7) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user