Merge pull request #1338 from Gymnasiast/sandbox-large-scenery

Allow building large scenery outside park borders in sandbox mode.
This commit is contained in:
Ted John 2015-06-14 15:29:59 +01:00
commit bb5293b57b
1 changed files with 1 additions and 1 deletions

View File

@ -2270,7 +2270,7 @@ void game_command_place_large_scenery(int* eax, int* ebx, int* ecx, int* edx, in
*ebx = MONEY32_UNDEFINED;
return;
}
if(!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) && map_is_location_owned(x2, y2, zLow * 8)){
if(!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) && map_is_location_owned(x2, y2, zLow * 8) || gSandboxMode){
if(*ebx & GAME_COMMAND_FLAG_APPLY){
if(!(*ebx & 0x40)){
footpath_remove_litter(x2, y2, zLow * 8);