Tweak damage tag delay
authorWuzzy <Wuzzy2@mail.ru>
Mon, 10 Dec 2018 09:01:27 +0100
changeset 14426 dce60c706f01
parent 14425 9561bf634b21
child 14427 b48c270328a5
Tweak damage tag delay
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Mon Dec 10 08:55:45 2018 +0100
+++ b/hedgewars/uGears.pas	Mon Dec 10 09:01:27 2018 +0100
@@ -71,8 +71,9 @@
 
 const delaySDStart = 1600;
       delaySDWarning = 1000;
-      delayDamageTag = 500;
-      delayTurnReact = 1500;
+      delayDamageTagFull = 1500;
+      delayDamageTagShort = 500;
+      delayTurnReact = 1000;
       delayFinal = 100;
 
 function CheckNoDamage: boolean; // returns TRUE in case of no damaged hhs
@@ -320,7 +321,10 @@
         inc(step)
     else
         begin
-        delay:= delayDamageTag;
+        if (not bBetweenTurns) and (not isInMultiShoot) then
+            delay:= delayDamageTagShort
+        else
+            delay:= delayDamageTagFull;
         step:= stDelay1;
         end;