hedgewars/uScript.pas
changeset 10286 1940e937fc08
parent 10285 03b615d3c6e1
child 10287 e17fe8572478
equal deleted inserted replaced
10285:03b615d3c6e1 10286:1940e937fc08
  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