hedgewars/uScript.pas
changeset 13434 745e9174038e
parent 13394 7b4726ef2308
child 13454 794dcf69a5aa
equal deleted inserted replaced
13433:fb104e150878 13434:745e9174038e
   968             if not lua_isnoneornil(L, 9) then
   968             if not lua_isnoneornil(L, 9) then
   969                 vg^.State:= Trunc(lua_tonumber(L, 9));
   969                 vg^.State:= Trunc(lua_tonumber(L, 9));
   970             if not lua_isnoneornil(L, 10) then
   970             if not lua_isnoneornil(L, 10) then
   971                 vg^.Timer:= Trunc(lua_tonumber(L, 10));
   971                 vg^.Timer:= Trunc(lua_tonumber(L, 10));
   972             if not lua_isnoneornil(L, 11) then
   972             if not lua_isnoneornil(L, 11) then
   973                 vg^.Tint:= Trunc(lua_tonumber(L, 11))
   973                 vg^.Tint:= Trunc(lua_tonumber(L, 11));
       
   974             if not lua_isnoneornil(L, 12) then
       
   975                 vg^.Scale:= Trunc(lua_tonumber(L, 12))
   974             end;
   976             end;
   975 //        end
   977 //        end
   976 //    else
   978 //    else
   977 //        lua_pushnil(L); // return value on stack (nil)
   979 //        lua_pushnil(L); // return value on stack (nil)
   978     lc_setvisualgearvalues:= 0
   980     lc_setvisualgearvalues:= 0