diff -r 725ef180e977 -r 2dae82c6ea63 bridge_map.h --- a/bridge_map.h Fri Dec 29 07:49:51 2006 +0000 +++ b/bridge_map.h Fri Dec 29 09:10:44 2006 +0000 @@ -81,6 +81,19 @@ } +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 */