hedgewars/uScript.pas
changeset 10278 cf3ff506734e
parent 10249 b47ac2c19de3
child 10279 b75e7ebfbe11
equal deleted inserted replaced
10277:b325e36f8e54 10278:cf3ff506734e
  1849 end;
  1849 end;
  1850 
  1850 
  1851 function lc_placegirder(L : Plua_State) : LongInt; Cdecl;
  1851 function lc_placegirder(L : Plua_State) : LongInt; Cdecl;
  1852 begin
  1852 begin
  1853     if lua_gettop(L) <> 3 then
  1853     if lua_gettop(L) <> 3 then
  1854         LuaParameterCountError('PlaceGirder', 'x, y, state', lua_gettop(L))
  1854         LuaParameterCountError('PlaceGirder', 'x, y, frameIdx', lua_gettop(L))
  1855     else
  1855     else
  1856         TryPlaceOnLand(
  1856         TryPlaceOnLand(
  1857             lua_tointeger(L, 1) - SpritesData[sprAmGirder].Width div 2,
  1857             lua_tointeger(L, 1) - SpritesData[sprAmGirder].Width div 2,
  1858             lua_tointeger(L, 2) - SpritesData[sprAmGirder].Height div 2,
  1858             lua_tointeger(L, 2) - SpritesData[sprAmGirder].Height div 2,
  1859             sprAmGirder, lua_tointeger(L, 3), true, false);
  1859             sprAmGirder, lua_tointeger(L, 3), true, false);