(svn r2456) * Prettyfied npf.c using enums and wrappers from rail.h.
* Moved GetTileRailType() from npf.c to rail.[ch].
This commit is contained in:
9
rail.h
9
rail.h
@@ -434,4 +434,13 @@ static inline bool HasSemaphores(TileIndex tile, Track track)
|
||||
return (_map3_hi[tile] & SIG_SEMAPHORE_MASK);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile.
|
||||
* Note that there is no check if the given trackdir is actually present on
|
||||
* the tile!
|
||||
* The given trackdir is used when there are (could be) multiple rail types on
|
||||
* one tile.
|
||||
*/
|
||||
RailType GetTileRailType(TileIndex tile, byte trackdir);
|
||||
|
||||
#endif // RAIL_H
|
||||
|
||||
Reference in New Issue
Block a user