equal
deleted
inserted
replaced
136 * Gets the direction the road stop entrance points towards. |
136 * Gets the direction the road stop entrance points towards. |
137 */ |
137 */ |
138 static inline DiagDirection GetRoadStopDir(TileIndex t) |
138 static inline DiagDirection GetRoadStopDir(TileIndex t) |
139 { |
139 { |
140 assert(IsRoadStopTile(t)); |
140 assert(IsRoadStopTile(t)); |
141 return (GetStationGfx(t) - GFX_TRUCK_BASE) & 3; |
141 return (DiagDirection)((GetStationGfx(t) - GFX_TRUCK_BASE) & 3); |
142 } |
142 } |
143 |
143 |
144 static inline bool IsOilRig(TileIndex t) |
144 static inline bool IsOilRig(TileIndex t) |
145 { |
145 { |
146 return GetStationGfx(t) == GFX_OILRIG_BASE; |
146 return GetStationGfx(t) == GFX_OILRIG_BASE; |