src/rail_map.h
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 5838 9c3129cb019b
child 6285 187e3ef04cc9
child 6498 aff910a05c6e
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
   259 }
   259 }
   260 
   260 
   261 
   261 
   262 /**
   262 /**
   263  * Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile.
   263  * Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile.
   264  * Note that there is no check if the given trackdir is actually present on
   264  */
   265  * the tile!
   265 RailType GetTileRailType(TileIndex tile);
   266  * The given trackdir is used when there are (could be) multiple rail types on
       
   267  * one tile.
       
   268  */
       
   269 RailType GetTileRailType(TileIndex tile, Track track);
       
   270 
   266 
   271 
   267 
   272 typedef enum RailGroundType {
   268 typedef enum RailGroundType {
   273 	RAIL_GROUND_BARREN       =  0,
   269 	RAIL_GROUND_BARREN       =  0,
   274 	RAIL_GROUND_GRASS        =  1,
   270 	RAIL_GROUND_GRASS        =  1,