From bc41dc4966cc105937e5351a2a434363596c0e07 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 30 May 2007 13:27:56 +0000 Subject: (svn r9987) -Fix [FS#818]: a train under a bridge could collide with a train on the bridge. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 7ba8c78ff..ecc9965aa 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2724,7 +2724,7 @@ static void *FindTrainCollideEnum(Vehicle *v, void *data) v != tcc->v_skip && v->type == VEH_TRAIN && v->u.rail.track != TRACK_BIT_DEPOT && - myabs(v->z_pos - tcc->v->z_pos) <= 6 && + myabs(v->z_pos - tcc->v->z_pos) < 6 && myabs(v->x_pos - tcc->v->x_pos) < 6 && myabs(v->y_pos - tcc->v->y_pos) < 6) { return v; -- cgit v1.2.3-70-g09d2