mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
SpeedCntrl affects also first vehicle now
This commit is contained in:
@@ -2703,6 +2703,7 @@ bool TDynamicObject::Update(double dt, double dt1)
|
||||
MoverParameters->CheckSpeedCtrl();
|
||||
|
||||
auto eimic = Min0R(MoverParameters->eimic, MoverParameters->eimicSpeedCtrl);
|
||||
MoverParameters->eimic = eimic;
|
||||
MoverParameters->SendCtrlToNext("EIMIC", Max0R(0, eimic), MoverParameters->CabNo);
|
||||
auto LBR = Max0R(-eimic, 0);
|
||||
|
||||
|
||||
@@ -5051,7 +5051,6 @@ double TMoverParameters::TractionForce( double dt ) {
|
||||
}
|
||||
else
|
||||
{
|
||||
PosRatio = static_cast<double>( MainCtrlPos ) / static_cast<double>( MainCtrlPosNo );
|
||||
PosRatio = Max0R(eimic, 0);
|
||||
eimv[eimv_Fzad] = PosRatio;
|
||||
if ((Flat) && (eimc[eimc_p_F0] * eimv[eimv_Fful] > 0))
|
||||
|
||||
Reference in New Issue
Block a user