mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
commit
4a7147c9ae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue