1
0
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:
Zeno Rogue 2019-05-24 23:49:52 +02:00
parent 4ac7f9043b
commit 1918f7fb1b

View File

@ -2769,7 +2769,7 @@ namespace kraken {
if(!isWatery(c)) return; if(!isWatery(c)) return;
if(againstCurrent(c, c2)) return; if(againstCurrent(c, c2)) return;
forCellIdEx(c3, i, c) { 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)) c3->move(c3->mondir) == c2))
return; return;
if(isPlayerOn(c3)) return; if(isPlayerOn(c3)) return;