not useful for visual gears, and apparently not helpful for consistency
authornemo
Tue, 29 Mar 2011 20:10:56 -0400
changeset 5075 59b13b38a827
parent 5074 16f9e2d1f3b2
child 5076 b3bb27f4ba6b
child 5077 7915668502a6
not useful for visual gears, and apparently not helpful for consistency
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Tue Mar 29 18:06:39 2011 -0400
+++ b/hedgewars/uScript.pas	Tue Mar 29 20:10:56 2011 -0400
@@ -359,8 +359,8 @@
             begin
             lua_pushinteger(L, round(vg^.X));
             lua_pushinteger(L, round(vg^.Y));
-            lua_pushnumber(L, vg^.dX * 1000000);
-            lua_pushnumber(L, vg^.dY * 1000000);
+            lua_pushnumber(L, vg^.dX);
+            lua_pushnumber(L, vg^.dY);
             lua_pushnumber(L, vg^.Angle);
             lua_pushinteger(L, vg^.Frame);
             lua_pushinteger(L, vg^.FrameTicks);
@@ -392,8 +392,8 @@
             begin
             vg^.X:= lua_tointeger(L, 2);
             vg^.Y:= lua_tointeger(L, 3);
-            vg^.dX:= lua_tonumber(L, 4) / 1000000;  // divide by 100,000 just for consistency
-            vg^.dY:= lua_tonumber(L, 5) / 1000000;
+            vg^.dX:= lua_tonumber(L, 4);
+            vg^.dY:= lua_tonumber(L, 5);
             vg^.Angle:= lua_tonumber(L, 6);
             vg^.Frame:= lua_tointeger(L, 7);
             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.