Don't show SMine timer if drowning
authorWuzzy <Wuzzy2@mail.ru>
Sun, 07 Apr 2019 23:08:33 +0200
changeset 14779 bc0e86b0347b
parent 14778 16168aff08c7
child 14780 c6b7f4a4122c
Don't show SMine timer if drowning
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Sun Apr 07 22:57:58 2019 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Sun Apr 07 23:08:33 2019 +0200
@@ -2290,7 +2290,7 @@
         CalcRotationDirAngle(Gear);
         end;
 
-    Gear^.RenderTimer:= ((Gear^.State and gstFrozen) = 0) and ((Gear^.State and gstAttacking) = 0);
+    Gear^.RenderTimer:= (Gear^.State and (gstFrozen or gstAttacking or gstDrowning) = 0);
     if ((Gear^.State and gsttmpFlag) <> 0) and (Gear^.Health <> 0) then
         begin
         if ((Gear^.State and gstAttacking) = 0) and ((Gear^.State and gstFrozen) = 0) then