summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-04 11:35:52 +0000
committercelestar <celestar@openttd.org>2006-04-04 11:35:52 +0000
commit8b151d8faa1c059ec874427c1d25f5783eeee6d4 (patch)
treee6e0b22a7932338beafa21c661c109ec9a1de75b /station.h
parentcc0ffe658224ca45262affab3df0c5900f084d05 (diff)
downloadopenttd-8b151d8faa1c059ec874427c1d25f5783eeee6d4.tar.xz
(svn r4272) -Codechange: Moved the map-accessing stuff from station.h into station_map.h
Diffstat (limited to 'station.h')
-rw-r--r--station.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/station.h b/station.h
index 02556c89f..39eeabe4a 100644
--- a/station.h
+++ b/station.h
@@ -198,20 +198,6 @@ uint GetNumRoadStops(const Station* st, RoadStopType type);
RoadStop * AllocateRoadStop( void );
void ClearSlot(Vehicle *v);
-static inline bool IsTrainStationTile(TileIndex tile)
-{
- return IsTileType(tile, MP_STATION) && IS_BYTE_INSIDE(_m[tile].m5, 0, 8);
-}
-
-static inline bool IsCompatibleTrainStationTile(TileIndex tile, TileIndex ref)
-{
- assert(IsTrainStationTile(ref));
- return
- IsTrainStationTile(tile) &&
- GB(_m[tile].m3, 0, 4) == GB(_m[ref].m3, 0, 4) && // same rail type?
- GB(_m[tile].m5, 0, 1) == GB(_m[ref].m5, 0, 1); // same direction?
-}
-
/**
* Check if a station really exists.
*/
@@ -225,9 +211,4 @@ static inline bool IsBuoy(const Station* st)
return st->had_vehicle_of_type & HVOT_BUOY; /* XXX: We should really ditch this ugly coding and switch to something sane... */
}
-static inline bool IsBuoyTile(TileIndex tile)
-{
- return IsTileType(tile, MP_STATION) && _m[tile].m5 == 0x52;
-}
-
#endif /* STATION_H */