summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-29 12:42:59 +0000
committertron <tron@openttd.org>2005-12-29 12:42:59 +0000
commited4b89ee3624784d7ca0896ebc698be814744c60 (patch)
tree471052da802f2cc20f631ca0291f7337c78cd45d /station.h
parent901068fd6e2b2c7059a59b5ec97c92e1ffe0633c (diff)
downloadopenttd-ed4b89ee3624784d7ca0896ebc698be814744c60.tar.xz
(svn r3353) Simplify the automatic length adjustment algorithm for replacing trains: Use the length of the train before the replacement as reference length
Diffstat (limited to 'station.h')
-rw-r--r--station.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/station.h b/station.h
index 9b35122b4..6459de6b0 100644
--- a/station.h
+++ b/station.h
@@ -248,11 +248,6 @@ static inline bool IsBuoyTile(TileIndex tile)
return IsTileType(tile, MP_STATION) && _m[tile].m5 == 0x52;
}
-static inline bool TileBelongsToRailStation(const Station *st, TileIndex tile)
-{
- return IsTileType(tile, MP_STATION) && _m[tile].m2 == st->index && _m[tile].m5 < 8;
-}
-
/* Get's the direction the station exit points towards. Ie, returns 0 for a
* station with the exit NE. */
static inline byte GetRoadStationDir(TileIndex tile)