16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 23:49:18 +02:00

Small fix to eimic and speedcontrol interaction

This commit is contained in:
Królik Uszasty
2019-03-14 18:58:31 +01:00
committed by tmj-fstate
parent 3de04fdb67
commit 8d67338950
4 changed files with 5 additions and 4 deletions

View File

@@ -2705,7 +2705,7 @@ bool TDynamicObject::Update(double dt, double dt1)
MoverParameters->CheckSpeedCtrl();
auto eimic = Min0R(MoverParameters->eimic, MoverParameters->eimicSpeedCtrl);
MoverParameters->eimic = eimic;
MoverParameters->eimic_real = eimic;
MoverParameters->SendCtrlToNext("EIMIC", Max0R(0, eimic), MoverParameters->CabNo);
auto LBR = Max0R(-eimic, 0);