mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-26 00:54:05 +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));
|
||
|
}
|