mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 13:29:18 +02:00
fix for trace route early return on full speed signal, fix for tachometers initialization
This commit is contained in:
36
Train.cpp
36
Train.cpp
@@ -4400,16 +4400,6 @@ bool TTrain::Update( double const Deltatime )
|
||||
{ // ustawienie zmiennych dla silnika spalinowego
|
||||
fEngine[1] = mvControlled->ShowEngineRotation(1);
|
||||
fEngine[2] = mvControlled->ShowEngineRotation(2);
|
||||
// if (ggEnrot1m.SubModel)
|
||||
//{
|
||||
// ggEnrot1m.UpdateValue(mvControlled->ShowEngineRotation(1));
|
||||
// ggEnrot1m.Update();
|
||||
//}
|
||||
// if (ggEnrot2m.SubModel)
|
||||
//{
|
||||
// ggEnrot2m.UpdateValue(mvControlled->ShowEngineRotation(2));
|
||||
// ggEnrot2m.Update();
|
||||
//}
|
||||
}
|
||||
|
||||
else if (mvControlled->EngineType == DieselEngine)
|
||||
@@ -4417,34 +4407,12 @@ bool TTrain::Update( double const Deltatime )
|
||||
fEngine[1] = mvControlled->ShowEngineRotation(1);
|
||||
fEngine[2] = mvControlled->ShowEngineRotation(2);
|
||||
fEngine[3] = mvControlled->ShowEngineRotation(3);
|
||||
// if (ggEnrot1m.SubModel)
|
||||
//{
|
||||
// ggEnrot1m.UpdateValue(mvControlled->ShowEngineRotation(1));
|
||||
// ggEnrot1m.Update();
|
||||
//}
|
||||
// if (ggEnrot2m.SubModel)
|
||||
//{
|
||||
// ggEnrot2m.UpdateValue(mvControlled->ShowEngineRotation(2));
|
||||
// ggEnrot2m.Update();
|
||||
//}
|
||||
// if (ggEnrot3m.SubModel)
|
||||
// if (mvControlled->Couplers[1].Connected)
|
||||
// {
|
||||
// ggEnrot3m.UpdateValue(mvControlled->ShowEngineRotation(3));
|
||||
// ggEnrot3m.Update();
|
||||
// }
|
||||
// if (ggEngageRatio.SubModel)
|
||||
//{
|
||||
// ggEngageRatio.UpdateValue(mvControlled->dizel_engage);
|
||||
// ggEngageRatio.Update();
|
||||
//}
|
||||
if (ggMainGearStatus.SubModel)
|
||||
{
|
||||
if (mvControlled->Mains)
|
||||
ggMainGearStatus.UpdateValue(1.1 -
|
||||
fabs(mvControlled->dizel_automaticgearstatus));
|
||||
ggMainGearStatus.UpdateValue(1.1 - std::abs(mvControlled->dizel_automaticgearstatus));
|
||||
else
|
||||
ggMainGearStatus.UpdateValue(0);
|
||||
ggMainGearStatus.UpdateValue(0.0);
|
||||
ggMainGearStatus.Update();
|
||||
}
|
||||
if (ggIgnitionKey.SubModel)
|
||||
|
||||
Reference in New Issue
Block a user