diff options
author | rubidium <rubidium@openttd.org> | 2007-05-30 13:27:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-30 13:27:56 +0000 |
commit | bc41dc4966cc105937e5351a2a434363596c0e07 (patch) | |
tree | 995c1178ba1cea292842c01c2d3fc4467a8f5611 | |
parent | a31e9441490d726b8887faf4d9f3fa320696a5b1 (diff) | |
download | openttd-bc41dc4966cc105937e5351a2a434363596c0e07.tar.xz |
(svn r9987) -Fix [FS#818]: a train under a bridge could collide with a train on the bridge.
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |