src/rail_map.h
changeset 9224 93528d9cb96d
parent 8954 3993bae3bfb8
child 9784 a9cc0dff1667
equal deleted inserted replaced
9223:2e4d5d55bdf0 9224:93528d9cb96d
   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