diff options
author | rubidium <rubidium@openttd.org> | 2007-05-25 11:01:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-25 11:01:44 +0000 |
commit | ce842502495b34d517211d43a9468bba07a495ce (patch) | |
tree | 580ae7c52465651d6884e80e160f9c107cd0d38e /src/roadveh_cmd.cpp | |
parent | 7ec428fe7e5e8ff82a8cd3c4cf2ff6eecb480063 (diff) | |
download | openttd-ce842502495b34d517211d43a9468bba07a495ce.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.cpp | 3 |
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 */ |