equal
deleted
inserted
replaced
164 * @return the direction the depot is facing |
164 * @return the direction the depot is facing |
165 */ |
165 */ |
166 static inline DiagDirection GetRailDepotDirection(TileIndex t) |
166 static inline DiagDirection GetRailDepotDirection(TileIndex t) |
167 { |
167 { |
168 return (DiagDirection)GB(_m[t].m5, 0, 2); |
168 return (DiagDirection)GB(_m[t].m5, 0, 2); |
|
169 } |
|
170 |
|
171 /** |
|
172 * Returns the track of a depot, ignoring direction |
|
173 * @pre IsRailDepotTile(t) |
|
174 * @param t the tile to get the depot track from |
|
175 * @return the track of the depot |
|
176 */ |
|
177 static inline Track GetRailDepotTrack(TileIndex t) |
|
178 { |
|
179 return DiagDirToDiagTrack(GetRailDepotDirection(t)); |
169 } |
180 } |
170 |
181 |
171 |
182 |
172 /** |
183 /** |
173 * Returns the axis of the waypoint |
184 * Returns the axis of the waypoint |