Merge pull request #1764 from Gymnasiast/fix-clear-scenery-in-scenario-editor

Fix Clear Scenery tool in Scenario Editor, fixes #1763
This commit is contained in:
Ted John 2015-08-11 18:42:39 +01:00
commit 4a7147c9ae
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ money32 map_clear_scenery(int x0, int y0, int x1, int y1, int flags)
totalCost = 0;
for (y = y0; y <= y1; y += 32) {
for (x = x0; x <= x1; x += 32) {
if (gCheatsSandboxMode || map_is_location_owned_or_has_rights(x, y)) {
if ((RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) || gCheatsSandboxMode || map_is_location_owned_or_has_rights(x, y)) {
cost = map_clear_scenery_from_tile(x / 32, y / 32, flags);
if (cost != MONEY32_UNDEFINED) {
noValidTiles = false;