mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
15 lines
219 B
C
15 lines
219 B
C
|
/* $Id$ */
|
||
|
|
||
|
#include "station.h"
|
||
|
|
||
|
|
||
|
static inline StationID GetStationIndex(TileIndex t)
|
||
|
{
|
||
|
return (StationID)_m[t].m2;
|
||
|
}
|
||
|
|
||
|
static inline Station* GetStationByTile(TileIndex t)
|
||
|
{
|
||
|
return GetStation(GetStationIndex(t));
|
||
|
}
|