mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 15:49:19 +02:00
Small fix for Driver's calculation of med braking
This commit is contained in:
@@ -3114,6 +3114,7 @@ bool TDynamicObject::Update(double dt, double dt1)
|
||||
RapidMult = MoverParameters->RapidMult;
|
||||
|
||||
auto const amax = RapidMult * std::min(FmaxPN / masamax, MoverParameters->MED_amax);
|
||||
Mechanik->fMedAmax = amax;
|
||||
auto doorisopen {
|
||||
( false == MoverParameters->Doors.instances[ side::left ].is_closed )
|
||||
|| ( false == MoverParameters->Doors.instances[ side::right ].is_closed )
|
||||
|
||||
Reference in New Issue
Block a user