Fix incorrect dynamite drown check
authorWuzzy <Wuzzy2@mail.ru>
Fri, 11 Oct 2019 19:10:14 +0200
changeset 15469 1e3761ecfc13
parent 15468 b56c04fac6f9
child 15470 846b5f879408
Fix incorrect dynamite drown check
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Fri Oct 11 18:59:48 2019 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Oct 11 19:10:14 2019 +0200
@@ -2348,7 +2348,7 @@
     doStepFallingGear(Gear);
     AllInactive := false;
 
-    if (Gear^.State and gstDrowning) = 0 then
+    if (Gear^.State and gstDrowning) <> 0 then
         exit;
     if Gear^.Timer mod 166 = 0 then
         inc(Gear^.Tag);