mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
fixed 'mondir>=0' warning
This commit is contained in:
parent
4ac7f9043b
commit
1918f7fb1b
@ -2769,7 +2769,7 @@ namespace kraken {
|
||||
if(!isWatery(c)) return;
|
||||
if(againstCurrent(c, c2)) return;
|
||||
forCellIdEx(c3, i, c) {
|
||||
if(c3->monst && c3 != c2 && !(c3->mondir >= 0 && c3->mondir < c3->type &&
|
||||
if(c3->monst && c3 != c2 && !(c3->mondir < c3->type &&
|
||||
c3->move(c3->mondir) == c2))
|
||||
return;
|
||||
if(isPlayerOn(c3)) return;
|
||||
|
Loading…
Reference in New Issue
Block a user