diff options
author | celestar <celestar@openttd.org> | 2006-04-04 11:35:52 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-04 11:35:52 +0000 |
commit | 8b151d8faa1c059ec874427c1d25f5783eeee6d4 (patch) | |
tree | e6e0b22a7932338beafa21c661c109ec9a1de75b /station.h | |
parent | cc0ffe658224ca45262affab3df0c5900f084d05 (diff) | |
download | openttd-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.h | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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 */ |