Check on active hedgehog death animation
authornemo
Tue, 20 Sep 2011 12:02:58 -0400
changeset 5969 6b245d2215c2
parent 5968 4e8bb227be9a
child 5970 b0ea168b60e1
Check on active hedgehog death animation
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Mon Sep 19 23:35:07 2011 +0200
+++ b/hedgewars/GSHandlers.inc	Tue Sep 20 12:02:58 2011 -0400
@@ -5126,7 +5126,7 @@
 if (Gear^.Pos = 1) and (GameTicks and $1F = 0) and (Gear^.Power < 255) then 
     begin
     inc(Gear^.Power);
-    if (Gear^.Power = 172) and (Gear^.Hedgehog^.Gear <> nil) then
+    if (Gear^.Power = 172) and (Gear^.Hedgehog^.Gear <> nil) and ((Gear^.Hedgehog^.Gear^.State and gstHHDeath) = 0) then
         begin
         with Gear^.Hedgehog^.Gear^ do
             begin