hedgewars/HHHandlers.inc
changeset 1034 05f003ad3caa
parent 1033 622c5de38d72
child 1035 6f5842bc481b
--- a/hedgewars/HHHandlers.inc	Thu Jun 26 19:39:26 2008 +0000
+++ b/hedgewars/HHHandlers.inc	Fri Jun 27 17:22:15 2008 +0000
@@ -488,7 +488,7 @@
 		begin
 		Gear^.Timer:= 0;
 		inc(Gear^.Pos);
-		if Gear^.Pos = 12 then
+		if Gear^.Pos = Wavez[TWave(Gear^.Tag)].FramesCount then
 			Gear^.State:= Gear^.State and not gstAnimation
 		end;
 	exit