diff options
author | frosch <frosch@openttd.org> | 2008-05-24 22:15:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-05-24 22:15:10 +0000 |
commit | ca30288c9d0057c62712973ae2c126195c8c9df5 (patch) | |
tree | e361e17a8b54a36b68f46f81c249e783be968d8e /src/road_internal.h | |
parent | 6e7a7412cdb824dd53ca8470dcfbba1d07f891b8 (diff) | |
download | openttd-ca30288c9d0057c62712973ae2c126195c8c9df5.tar.xz |
(svn r13234) -Fix: Check/affect town rating when removing/bulldozing town-owned road under drivethrough stops.
-Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
Diffstat (limited to 'src/road_internal.h')
-rw-r--r-- | src/road_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/road_internal.h b/src/road_internal.h index 7a56a4824..9e3f3c510 100644 --- a/src/road_internal.h +++ b/src/road_internal.h @@ -20,11 +20,12 @@ RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb); * @param tile the tile to remove the road from * @param remove the roadbits that are going to be removed * @param owner the actual owner of the roadbits of the tile - * @param edge_road are the removed bits from a town? * @param rt the road type to remove the bits from + * @param flags command flags + * @param town_check Shall the town rating checked/affected * @return true when it is allowed to remove the road bits */ -bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road, RoadType rt); +bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadType rt, uint32 flags, bool town_check = true); /** * Draw the catenary for tram road bits |