only display cake timer if it is low
authorsheepluva
Wed, 25 Mar 2015 21:30:04 +0100
changeset 10875 67b92a09cded
parent 10874 059a6492176e
child 10876 d012728b89b9
only display cake timer if it is low
hedgewars/uGearsHandlersMess.pas
hedgewars/uGearsList.pas
--- a/hedgewars/uGearsHandlersMess.pas	Wed Mar 25 20:30:52 2015 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Wed Mar 25 21:30:04 2015 +0100
@@ -3225,7 +3225,9 @@
         Gear^.RenderTimer := false;
         Gear^.doStep := @doStepCakeDown;
         exit
-        end;
+        end
+    else if Gear^.Timer < 6000 then
+        Gear^.RenderTimer:= true;
 
     if not cakeStep(Gear) then Gear^.doStep:= @doStepCakeFall;
 
--- a/hedgewars/uGearsList.pas	Wed Mar 25 20:30:52 2015 +0100
+++ b/hedgewars/uGearsList.pas	Wed Mar 25 21:30:04 2015 +0100
@@ -504,7 +504,7 @@
                 gear^.Health:= 2048;
                 gear^.Radius:= 7;
                 gear^.Z:= cOnHHZ;
-                gear^.RenderTimer:= true;
+                gear^.RenderTimer:= false;
                 gear^.DirAngle:= -90 * hwSign(Gear^.dX);
                 if not dX.isNegative then
                     gear^.Angle:= 1