mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Codechange: Pass the max-distance as parameter to VehiclesNearTileXY.
This commit is contained in:
@@ -3228,7 +3228,7 @@ static bool CheckTrainCollision(Train *v)
|
||||
num_victims += CheckTrainCollision(u, v);
|
||||
}
|
||||
} else {
|
||||
for (Vehicle *u : VehiclesNearTileXY(v->x_pos, v->y_pos)) {
|
||||
for (Vehicle *u : VehiclesNearTileXY(v->x_pos, v->y_pos, 6)) {
|
||||
num_victims += CheckTrainCollision(u, v);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user