1
0
Fork 0

(svn r9987) -Fix [FS#818]: a train under a bridge could collide with a train on the bridge.

release/0.6
rubidium 2007-05-30 13:27:56 +00:00
parent a31e944149
commit bc41dc4966
1 changed files with 1 additions and 1 deletions

View File

@ -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;