mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 09:59:18 +02:00
Merge with TMJ
This commit is contained in:
@@ -5879,7 +5879,7 @@ TDynamicObject::update_neighbours() {
|
||||
neighbour.vehicle_end = std::get<int>( lookup );
|
||||
neighbour.distance = std::get<double>( lookup );
|
||||
|
||||
if( neighbour.distance < ( neighbour.vehicle->MoverParameters->CategoryFlag == 2 ? 25 : 50 ) ) {
|
||||
if( neighbour.distance < ( neighbour.vehicle->MoverParameters->CategoryFlag == 2 ? 50 : 100 ) ) {
|
||||
// at short distances (re)calculate range between couplers directly
|
||||
neighbour.distance = TMoverParameters::CouplerDist( MoverParameters, neighbour.vehicle->MoverParameters );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user