equal
deleted
inserted
replaced
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); |