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 | 7fbfe54c7409e2b3076339caf74b236d852abe65 (patch) | |
tree | e361e17a8b54a36b68f46f81c249e783be968d8e /src/station_map.h | |
parent | 8f104a2e971822e548d210bcd83f84057e54702d (diff) | |
download | openttd-7fbfe54c7409e2b3076339caf74b236d852abe65.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/station_map.h')
-rw-r--r-- | src/station_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/station_map.h b/src/station_map.h index ad7e05078..0ec6797dc 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -134,6 +134,12 @@ static inline bool GetStopBuiltOnTownRoad(TileIndex t) return HasBit(_m[t].m6, 2); } +static inline void SetStopBuiltOnTownRoad(TileIndex t, bool on_town_road) +{ + assert(IsDriveThroughStopTile(t)); + SB(_m[t].m6, 2, 1, on_town_road); +} + /** * Gets the direction the road stop entrance points towards. |