mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed the crash in Wild West
This commit is contained in:
parent
f5434f7655
commit
6ec7023501
10
game.cpp
10
game.cpp
@ -3152,13 +3152,9 @@ bool makeEmpty(cell *c) {
|
|||||||
c->item = itNone;
|
c->item = itNone;
|
||||||
|
|
||||||
if(c->land == laWildWest) {
|
if(c->land == laWildWest) {
|
||||||
for(int i=0; i<c->type; i++) {
|
forCellEx(c2, c)
|
||||||
cell *c2 = c->move(i);
|
forCellEx(c3, c2)
|
||||||
if(c2) for(int j=0; j<c->type; j++) {
|
c3->wall = waNone;
|
||||||
cell *c3 = c2->move(j);
|
|
||||||
if(c3) c3->wall = waNone;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user