summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-20 11:22:36 +0000
committerrubidium <rubidium@openttd.org>2009-12-20 11:22:36 +0000
commit4d781122821f3e834ad668f5616e32f4de2465cf (patch)
tree538bb455485b27e7875a493742a01a79fd2d1b46
parent468986d41ad6926368799960bba5a5be53aea2d4 (diff)
downloadopenttd-4d781122821f3e834ad668f5616e32f4de2465cf.tar.xz
(svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as overtaking in a station is not allowed
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 322b33c0b..99a0f9f6a 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -862,7 +862,7 @@ static void RoadVehCheckOvertake(RoadVehicle *v, RoadVehicle *u)
if (v->roadtype == ROADTYPE_TRAM) return;
/* Don't overtake in stations */
- if (IsTileType(v->tile, MP_STATION)) return;
+ if (IsTileType(v->tile, MP_STATION) || IsTileType(u->tile, MP_STATION)) return;
/* For now, articulated road vehicles can't overtake anything. */
if (v->HasArticulatedPart()) return;