diff options
author | tron <tron@openttd.org> | 2006-04-10 20:46:37 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-10 20:46:37 +0000 |
commit | b0ee09fd1d82f1e28cd061e978c30dda3ae103e0 (patch) | |
tree | 1292885633de8a336444297f1e36c88f20aa80a1 /rail.h | |
parent | f4a8818dbfd894cc8f601fddd12bf44c3ba4fc13 (diff) | |
download | openttd-b0ee09fd1d82f1e28cd061e978c30dda3ae103e0.tar.xz |
(svn r4349) Remove GetCrossingTransportType(), it's slightly overkill
Diffstat (limited to 'rail.h')
-rw-r--r-- | rail.h | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -430,26 +430,6 @@ RailType GetTileRailType(TileIndex tile, Trackdir trackdir); /** - * Gets the transport type of the given track on the given crossing tile. - * @return The transport type of the given track, either TRANSPORT_ROAD, - * TRANSPORT_RAIL. - */ -static inline TransportType GetCrossingTransportType(TileIndex tile, Track track) -{ - /* XXX: Nicer way to write this? */ - switch (track) { - /* When map5 bit 3 is set, the road runs in the y direction */ - case TRACK_X: - return (HASBIT(_m[tile].m5, 3) ? TRANSPORT_RAIL : TRANSPORT_ROAD); - case TRACK_Y: - return (HASBIT(_m[tile].m5, 3) ? TRANSPORT_ROAD : TRANSPORT_RAIL); - default: - assert(0); - } - return INVALID_TRANSPORT; -} - -/** * Returns a pointer to the Railtype information for a given railtype * @param railtype the rail type which the information is requested for * @return The pointer to the RailtypeInfo |