Set turn time to 0 when current hog drowns
authorWuzzy <almikes@aol.com>
Fri, 07 Apr 2017 00:57:09 +0200
changeset 12177 bfeeb1c35e77
parent 12176 29f1ea94488b
child 12178 04d9ea191a15
Set turn time to 0 when current hog drowns
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Thu Apr 06 23:28:13 2017 +0200
+++ b/hedgewars/uGearsUtils.pas	Fri Apr 07 00:57:09 2017 +0200
@@ -657,6 +657,8 @@
                 begin
                 CheckGearDrowning := true;
                 Gear^.State := gstDrowning;
+                if Gear = CurrentHedgehog^.Gear then
+                    TurnTimeLeft := 0;
                 Gear^.RenderTimer := false;
                 if (Gear^.Kind <> gtSniperRifleShot) and (Gear^.Kind <> gtShotgunShot)
                 and (Gear^.Kind <> gtDEagleShot) and (Gear^.Kind <> gtSineGunShot) then