changeset 4170:5ecfd5b27152 draft

(svn r5607) -Regression [r3597]: Let a road vehicle only overtake if there is no vehicle close except the two involved
author tron <tron@openttd.org>
date Tue, 25 Jul 2006 19:18:31 +0000
parents cf32fcf48032
children 99326b5a6994
files roadveh_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -878,7 +878,7 @@
 	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;
 }