somehow scale was omitted from this catch-all VG init. late addition to the struct perhaps.
authornemo
Mon, 02 Jul 2018 16:48:16 -0400
changeset 13439 745e9174038e
parent 13438 fb104e150878
child 13441 e4fbf2ec9f8a
somehow scale was omitted from this catch-all VG init. late addition to the struct perhaps.
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Mon Jul 02 16:46:13 2018 +0300
+++ b/hedgewars/uScript.pas	Mon Jul 02 16:48:16 2018 -0400
@@ -970,7 +970,9 @@
             if not lua_isnoneornil(L, 10) then
                 vg^.Timer:= Trunc(lua_tonumber(L, 10));
             if not lua_isnoneornil(L, 11) then
-                vg^.Tint:= Trunc(lua_tonumber(L, 11))
+                vg^.Tint:= Trunc(lua_tonumber(L, 11));
+            if not lua_isnoneornil(L, 12) then
+                vg^.Scale:= Trunc(lua_tonumber(L, 12))
             end;
 //        end
 //    else