diff options
Diffstat (limited to 'bridge_map.h')
-rw-r--r-- | bridge_map.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bridge_map.h b/bridge_map.h index 34da494bf..1cda0da9d 100644 --- a/bridge_map.h +++ b/bridge_map.h @@ -81,6 +81,19 @@ static inline TransportType GetBridgeTransportType(TileIndex t) } +static inline bool HasBridgeSnowOrDesert(TileIndex t) +{ + assert(IsBridgeTile(t)); + return HASBIT(_m[t].m4, 7); +} + + +static inline void SetBridgeSnowOrDesert(TileIndex t, bool snow_or_desert) +{ + assert(IsBridgeTile(t)); + SB(_m[t].m4, 7, 1, snow_or_desert); +} + /** * Finds the end of a bridge in the specified direction starting at a middle tile */ |