mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-22 04:24:59 +01:00
Merge pull request #259 from MaSzyna-EU07/fix/sm03-engine-shutdown
fix(cab): a diesel with only the starter button stops its engine with the main switch off command (eu07/maszyna#427)
This commit is contained in:
@@ -2472,6 +2472,13 @@ class TMoverParameters
|
||||
}
|
||||
return false == StLinFlag && MainCircuitLampsEnabled();
|
||||
}
|
||||
// whether the cab command opening the main circuit opens it where the only cab switch of the circuit is the button
|
||||
// closing it: on a diesel that's the starter button, and the command is the one way to stop an engine whose fuel pump
|
||||
// starts on its own (eu07/maszyna#427). the other vehicles with such a button keep ignoring the command
|
||||
bool MainCircuitOpensWithStarterOnly() const
|
||||
{
|
||||
return EngineType == TEngineType::DieselEngine || EngineType == TEngineType::DieselElectric;
|
||||
}
|
||||
// whether the pumps a joint oil and fuel pump switch works, those not started automatically, are all switched on
|
||||
bool OilFuelPumpsEnabled() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user