summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-23 18:04:04 +0000
committertron <tron@openttd.org>2004-11-23 18:04:04 +0000
commitc5b0ecac4f06a36c6ff0ca0f4c79d7943f3d023a (patch)
tree88818a8c1491133c8d033ee4fe7af46c4624f259
parenta3cb5499bf035fbaad33a0b8cc77e80e4e088c30 (diff)
downloadopenttd-c5b0ecac4f06a36c6ff0ca0f4c79d7943f3d023a.tar.xz
(svn r780) Always report a bus/lorry station as unpassable.
The current behavior just causes bugs and the pathfinder does the necessary magic to handle stations as destinations and enter them anyway. This fixes [ 1058809 ]
-rw-r--r--station_cmd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/station_cmd.c b/station_cmd.c
index f1299dca6..6cb28fac0 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -2036,19 +2036,6 @@ static uint32 GetTileTrackStatus_Station(uint tile, TransportType mode) {
if (i < 8)
j = _tile_track_status_rail[i];
j += (j << 8);
- } else if (mode == TRANSPORT_ROAD) {
- Station *st = DEREF_STATION(_map2[tile]);
- if ( (IS_BYTE_INSIDE(i, 0x43, 0x47) && (_patches.roadveh_queue || st->truck_stop_status&3)) ||
- (IS_BYTE_INSIDE(i, 0x47, 0x4B) && (_patches.roadveh_queue || st->bus_stop_status&3)) ) {
- /* This is a bus/truck stop, and there is free space
- * (or we allow queueing) */
-
- /* We reverse the dir because it points out of the
- * exit, and we want to get in. Maybe we should return
- * both dirs here? */
- byte dir = _reverse_dir[(i-0x43)&3];
- j = 1 << _dir_to_straight_trackdir[dir];
- }
} else if (mode == TRANSPORT_WATER) {
// buoy is coded as a station, it is always on open water
// (0x3F, all tracks available)