fixed 'mondir>=0' warning

This commit is contained in:
Zeno Rogue 2019-05-24 23:49:52 +02:00
parent 4ac7f9043b
commit 1918f7fb1b
1 changed files with 1 additions and 1 deletions

View File

@ -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;