GRF: Add extra road/tram type flag: towns cannot modify tiles
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "pathfinder/npf/aystar.h"
|
||||
#include "saveload/saveload.h"
|
||||
#include "framerate_type.h"
|
||||
#include "town.h"
|
||||
#include "3rdparty/cpp-btree/btree_set.h"
|
||||
#include "scope_info.h"
|
||||
#include <list>
|
||||
@@ -713,6 +714,8 @@ CommandCost CmdLandscapeClear(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
|
||||
return_cmd_error(STR_ERROR_CLEARING_LIMIT_REACHED);
|
||||
}
|
||||
|
||||
if ((flags & DC_TOWN) && !MayTownModifyRoad(tile)) return CMD_ERROR;
|
||||
|
||||
const ClearedObjectArea *coa = FindClearedObject(tile);
|
||||
|
||||
/* If this tile was the first tile which caused object destruction, always
|
||||
|
Reference in New Issue
Block a user