summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-25 11:01:44 +0000
committerrubidium <rubidium@openttd.org>2007-05-25 11:01:44 +0000
commitd234e97f8bc08854859d3b36deb918481f54aa5f (patch)
tree580ae7c52465651d6884e80e160f9c107cd0d38e /src/roadveh_cmd.cpp
parent9060ab4af1e3e39bb43374af655c476e26307a39 (diff)
downloadopenttd-d234e97f8bc08854859d3b36deb918481f54aa5f.tar.xz
(svn r9919) -Codechange: prepare some more places for more road types.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index a331c430f..9a00a6af4 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -957,6 +957,9 @@ static void RoadVehCheckOvertake(Vehicle *v, Vehicle *u)
return;
}
+ /* Trams can't overtake other trams */
+ if (v->u.road.roadtype == ROADTYPE_TRAM) return;
+
if (v->direction != u->direction || !(v->direction & 1)) return;
/* Check if vehicle is in a road stop, depot, tunnel or bridge or not on a straight road */