equal
deleted
inserted
replaced
79 assert(IsBridgeTile(t)); |
79 assert(IsBridgeTile(t)); |
80 return (TransportType)GB(_m[t].m5, 2, 2); |
80 return (TransportType)GB(_m[t].m5, 2, 2); |
81 } |
81 } |
82 |
82 |
83 |
83 |
|
84 static inline bool HasBridgeSnowOrDesert(TileIndex t) |
|
85 { |
|
86 assert(IsBridgeTile(t)); |
|
87 return HASBIT(_m[t].m4, 7); |
|
88 } |
|
89 |
|
90 |
|
91 static inline void SetBridgeSnowOrDesert(TileIndex t, bool snow_or_desert) |
|
92 { |
|
93 assert(IsBridgeTile(t)); |
|
94 SB(_m[t].m4, 7, 1, snow_or_desert); |
|
95 } |
|
96 |
84 /** |
97 /** |
85 * Finds the end of a bridge in the specified direction starting at a middle tile |
98 * Finds the end of a bridge in the specified direction starting at a middle tile |
86 */ |
99 */ |
87 TileIndex GetBridgeEnd(TileIndex, DiagDirection); |
100 TileIndex GetBridgeEnd(TileIndex, DiagDirection); |
88 |
101 |