Fix Clear Scenery tool in Scenario Editor

This commit is contained in:
Gymnasiast 2015-08-11 17:54:21 +02:00
parent 9fd791c89d
commit 810bd0620a
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;