hedgewars/uScript.pas
changeset 13748 d7b72ea8d136
parent 13747 cb2857f55130
child 13750 be265ab8a4fb
--- a/hedgewars/uScript.pas	Sun Sep 02 22:05:45 2018 +0200
+++ b/hedgewars/uScript.pas	Mon Sep 03 00:03:06 2018 +0200
@@ -2018,9 +2018,10 @@
         else
             respectFactor:= True;
         if respectFactor then
-            TurnTimeLeft:= (time * cGetAwayTime) div 100
+            PendingTurnTimeLeft:= (time * cGetAwayTime) div 100
         else
-            TurnTimeLeft:= time;
+            PendingTurnTimeLeft:= time;
+        isPendingTurnTimeLeft:= true;
         if ((CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)) then
             begin
             CurrentHedgehog^.Gear^.State:= CurrentHedgehog^.Gear^.State or gstAttacked;