summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-07-25 19:18:31 +0000
committertron <tron@openttd.org>2006-07-25 19:18:31 +0000
commitfd0305197ef5e50554ae06dd8e3ddd8238cbeca1 (patch)
tree40264bc9f497614651ba8d5671be2744c5ca6269
parent4ca059b0e248ef7e6f765308a182240ab2434ec9 (diff)
downloadopenttd-fd0305197ef5e50554ae06dd8e3ddd8238cbeca1.tar.xz
(svn r5607) -Regression [r3597]: Let a road vehicle only overtake if there is no vehicle close except the two involved
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index ee9f9cec1..b276b34ae 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -878,7 +878,7 @@ static void* EnumFindVehToOvertake(Vehicle* v, void* data)
const OvertakeData* od = data;
return
- v->tile == od->tile && v->type == VEH_Road && v == od->u && v == od->v ?
+ v->tile == od->tile && v->type == VEH_Road && v != od->u && v != od->v ?
v : NULL;
}