mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 23:47:00 +00:00
3d:: no crash in Power
This commit is contained in:
parent
e98afaf45c
commit
ba49bb203a
@ -542,6 +542,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
cell *c2 = c->move(i);
|
cell *c2 = c->move(i);
|
||||||
if(!c2) continue;
|
if(!c2) continue;
|
||||||
cell *c3 = c2->modmove(c->c.spin(i) + 3);
|
cell *c3 = c2->modmove(c->c.spin(i) + 3);
|
||||||
|
if(!c3) continue;
|
||||||
if(c3->land != laPower && c3->land != laBarrier)
|
if(c3->land != laPower && c3->land != laBarrier)
|
||||||
if(c2->wall != waFire && c2->wall != waGlass) {
|
if(c2->wall != waFire && c2->wall != waGlass) {
|
||||||
if(isFire(c)) c->monst = moWitchWinter;
|
if(isFire(c)) c->monst = moWitchWinter;
|
||||||
|
Loading…
Reference in New Issue
Block a user