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

Additional ED brake factor for broken vehicles

This commit is contained in:
Królik Uszasty
2021-09-25 20:16:34 +02:00
committed by tmj-fstate
parent 0f22f24eb7
commit f344b37b40
3 changed files with 4 additions and 2 deletions

View File

@@ -3204,7 +3204,7 @@ bool TDynamicObject::Update(double dt, double dt1)
if ((MoverParameters->BrakeCtrlPos == MoverParameters->Handle->GetPos(bh_EB))
&& (MoverParameters->eimc[eimc_p_abed] < 0.001))
FzadED = 0; //pętla bezpieczeństwa - bez ED
auto const FzadPN = Fzad - FrED;
auto const FzadPN = Fzad - FrED * MoverParameters->MED_FrED_factor;
//np = 0;
// BUG: likely memory leak, allocation per inner loop, deleted only once outside
// TODO: sort this shit out