From 1918f7fb1b51982808b7f1064b34bfacb62ebfee Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 24 May 2019 23:49:52 +0200 Subject: [PATCH] fixed 'mondir>=0' warning --- complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complex.cpp b/complex.cpp index 83ff02b4..c6436214 100644 --- a/complex.cpp +++ b/complex.cpp @@ -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;