diff options
author | terkhen <terkhen@openttd.org> | 2010-11-09 17:39:41 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-11-09 17:39:41 +0000 |
commit | e1ff8aeb09cded7fe1651f0a7fa06d145d723607 (patch) | |
tree | c30d029bc8bba6adfa5cbf081112bfa663d7938f /src | |
parent | e08aa7e8e6bd732e66cd123aaa5c6885054bf68b (diff) | |
download | openttd-e1ff8aeb09cded7fe1651f0a7fa06d145d723607.tar.xz |
(svn r21122) -Fix (r21100): Use the cached max speed when checking road vehicle overtaking.
Diffstat (limited to 'src')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index e6b575140..3eb66acd5 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -756,7 +756,7 @@ static void RoadVehCheckOvertake(RoadVehicle *v, RoadVehicle *u) od.v = v; od.u = u; - if (u->max_speed >= v->vcache.cached_max_speed && + if (u->vcache.cached_max_speed >= v->vcache.cached_max_speed && !(u->vehstatus & VS_STOPPED) && u->cur_speed != 0) { return; |