mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 02:09:19 +02:00
build 191115. vehicle voltage circuits logic fixes, ai train manager logic tweak
This commit is contained in:
12
Train.cpp
12
Train.cpp
@@ -5701,12 +5701,16 @@ bool TTrain::Update( double const Deltatime )
|
||||
}
|
||||
|
||||
// Ra 2014-09: napięcia i prądy muszą być ustalone najpierw, bo wysyłane są ewentualnie na PoKeys
|
||||
if ((mvControlled->EngineType != TEngineType::DieselElectric)
|
||||
&& (mvControlled->EngineType != TEngineType::ElectricInductionMotor)) // Ra 2014-09: czy taki rozdzia? ma sens?
|
||||
fHVoltage = std::max( mvControlled->PantographVoltage, mvControlled->GetTrainsetVoltage() ); // Winger czy to nie jest zle?
|
||||
if( ( mvControlled->EngineType != TEngineType::DieselElectric )
|
||||
&& ( mvControlled->EngineType != TEngineType::ElectricInductionMotor ) ) { // Ra 2014-09: czy taki rozdzia? ma sens?
|
||||
fHVoltage = std::max(
|
||||
mvControlled->PantographVoltage,
|
||||
mvControlled->GetAnyTrainsetVoltage() ); // Winger czy to nie jest zle?
|
||||
}
|
||||
// *mvControlled->Mains);
|
||||
else
|
||||
else {
|
||||
fHVoltage = mvControlled->EngineVoltage;
|
||||
}
|
||||
if (ShowNextCurrent)
|
||||
{ // jeśli pokazywać drugi człon
|
||||
if (mvSecond)
|
||||
|
||||
Reference in New Issue
Block a user