mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 23:14:59 +01:00
fix(physicslog): the writer's destructor throws nothing, its wait a plain condition variable woken to stop; a driver of no vehicle controls nothing
This commit is contained in:
@@ -6372,6 +6372,10 @@ void TController::ControllingSet()
|
||||
// problematyczne jest sterowanie z członu biernego, dlatego damy AI silnikowy
|
||||
// dzięki temu będzie wirtualna kabina w silnikowym, działająca w rozrządczym
|
||||
// w plikach FIZ zostały zgubione ujemne maski sprzęgów, stąd problemy z EZT
|
||||
if( pVehicle == nullptr ) {
|
||||
// a driver of no vehicle has nothing to control
|
||||
return;
|
||||
}
|
||||
mvOccupied = pVehicle->MoverParameters; // domyślny skrót do obiektu parametrów
|
||||
BrakeSystem = mvOccupied->BrakeSystem; // domyślny sposób hamowania
|
||||
mvControlling = pVehicle->FindPowered()->MoverParameters; // poszukiwanie członu sterowanego
|
||||
|
||||
Reference in New Issue
Block a user