hedgewars/uScript.pas
changeset 7135 4d863aadd0b2
parent 7072 159616c24bb8
child 7156 09262f82e99d
equal deleted inserted replaced
7133:9f250f79cb79 7135:4d863aadd0b2
   148         begin
   148         begin
   149         LuaError('Lua: Wrong number of parameters passed to div!');
   149         LuaError('Lua: Wrong number of parameters passed to div!');
   150         lua_pushnil(L);
   150         lua_pushnil(L);
   151         end
   151         end
   152     else
   152     else
   153         lua_pushinteger(L, lua_tointeger(L, 2) div lua_tointeger(L, 1));
   153         lua_pushinteger(L, lua_tointeger(L, 1) div lua_tointeger(L, 2));
   154     lc_div := 1;
   154     lc_div := 1;
   155 end;
   155 end;
   156 
   156 
   157 function lc_getinputmask(L : Plua_State) : LongInt; Cdecl;
   157 function lc_getinputmask(L : Plua_State) : LongInt; Cdecl;
   158 begin
   158 begin