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 | fc9df2c3363dd672274594d7d4a34fc8535fb4e8 (patch) | |
tree | 995c1178ba1cea292842c01c2d3fc4467a8f5611 | |
parent | 0bdd409765cb3188b833e7a67761e9e0489b1ece (diff) | |
download | openttd-fc9df2c3363dd672274594d7d4a34fc8535fb4e8.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; |