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:
parent
578172b916
commit
9225602da3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user