thanks unc0rr (corrected flag - also check on turn time)
authornemo
Sun, 21 Jun 2009 15:46:48 +0000
changeset 2181 26d3b13ee553
parent 2180 6c5a339f8e28
child 2182 ed7e7eb3f9ed
thanks unc0rr (corrected flag - also check on turn time)
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Jun 21 15:41:07 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jun 21 15:46:48 2009 +0000
@@ -2217,7 +2217,7 @@
 //AddCaption(inttostr(round(Gear^.Health/20))+'% : '+inttostr(round(Gear^.Timer/1000)), $FFFFFF, capgrpMessage);
 
 HHGear^.Message:= HHGear^.Message and not (gm_Up or gm_Precise or gm_Left or gm_Right);
-HHGear^.State:= HHGear^.State and gstMoving and (not gstNotKickable); 
+HHGear^.State:= HHGear^.State or gstMoving; 
 
 Gear^.X:= HHGear^.X;
 Gear^.Y:= HHGear^.Y;
@@ -2226,6 +2226,7 @@
 if  (Gear^.Health = 0)
     or (HHGear^.Damage <> 0)
 	or CheckGearDrowning(HHGear)
+    or (TurnTimeLeft = 0) 
 	or ((Gear^.Message and gm_Attack) <> 0) then
 	begin
 	with HHGear^ do