summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2004-11-23 17:16:41 +0000
committermatthijs <matthijs@openttd.org>2004-11-23 17:16:41 +0000
commitca0f5ffe6060839c865e30d35bf0f113518fe142 (patch)
tree85c2b4bfee7110167b311a0cd0ee6caf1f5306bc
parent2214a9df5c6164e4f2ebe4fd42565262b748852c (diff)
downloadopenttd-ca0f5ffe6060839c865e30d35bf0f113518fe142.tar.xz
(svn r778) -Fix: [ 1064742 ] 
-rw-r--r--roadveh_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 5de98db27..c5d8c6b87 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -950,6 +950,9 @@ static int RoadFindPathToDest(Vehicle *v, uint tile, int direction)
if (IS_BYTE_INSIDE(val, 0x47, 0x4B) && (_patches.roadveh_queue || st->bus_stop_status&3))
bitmask |= _road_veh_fp_ax_or[(val-0x47)&3];
}
+ } else {
+ /* Other people's station. No-go */
+ bitmask = 0;
}
}
/* The above lookups should be moved to GetTileTrackStatus in the