hedgewars/uScript.pas
changeset 4546 a6402b8c2b24
parent 4533 8d35c3e0e6ba
child 4590 d9fed5a816e9
--- a/hedgewars/uScript.pas	Thu Dec 16 15:02:35 2010 -0500
+++ b/hedgewars/uScript.pas	Thu Dec 16 15:26:19 2010 -0500
@@ -381,7 +381,7 @@
             vg^.dY:= lua_tonumber(L, 5);
             vg^.Angle:= lua_tonumber(L, 6);
             vg^.Frame:= lua_tointeger(L, 7);
-            vg^.FrameTicks:= lua_tointeger(L, 8);
+            if lua_tointeger(L, 8) <> 0 then vg^.FrameTicks:= lua_tointeger(L, 8);  // find a better way to do this. maybe need to break all these up.
             vg^.State:= lua_tointeger(L, 9);
             vg^.Timer:= lua_tointeger(L, 10);
             vg^.Tint:= lua_tointeger(L, 11);