equal
deleted
inserted
replaced
2044 LuaError(call + ': ' + EnumToStr(spr) + ' cannot be placed! (required information not loaded)' ) |
2044 LuaError(call + ': ' + EnumToStr(spr) + ' cannot be placed! (required information not loaded)' ) |
2045 else |
2045 else |
2046 placed:= TryPlaceOnLand( |
2046 placed:= TryPlaceOnLand( |
2047 lua_tointeger(L, 1) - SpritesData[spr].Width div 2, |
2047 lua_tointeger(L, 1) - SpritesData[spr].Width div 2, |
2048 lua_tointeger(L, 2) - SpritesData[spr].Height div 2, |
2048 lua_tointeger(L, 2) - SpritesData[spr].Height div 2, |
2049 spr, lua_tointeger(L, 4), true, false, lf); |
2049 spr, lua_tointeger(L, 4), true, lf); |
2050 end; |
2050 end; |
2051 end; |
2051 end; |
2052 |
2052 |
2053 lua_pushboolean(L, placed); |
2053 lua_pushboolean(L, placed); |
2054 lc_placesprite:= 1 |
2054 lc_placesprite:= 1 |