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

build 180419. radiator fan sounds, radiator shutters submodels, minor enhancements and bug fixes

This commit is contained in:
tmj-fstate
2018-04-19 23:17:56 +02:00
parent ab17f5a4f4
commit 6349a13425
8 changed files with 102 additions and 67 deletions

View File

@@ -2341,16 +2341,19 @@ bool TController::PrepareEngine()
else
OK = false;
OK = OK && ( mvOccupied->ActiveDir != 0 ) && ( mvControlling->ScndPipePress > 4.5 ) && ( workingtemperature );
if (OK)
{
if (eStopReason == stopSleep) // jeśli dotychczas spał
eStopReason = stopNone; // teraz nie ma powodu do stania
if( ( true == OK )
&& ( mvOccupied->ActiveDir != 0 )
&& ( true == workingtemperature )
&& ( ( mvControlling->ScndPipePress > 4.5 ) || ( mvControlling->VeselVolume == 0.0 ) ) ) {
if( eStopReason == stopSleep ) {
// jeśli dotychczas spał teraz nie ma powodu do stania
eStopReason = stopNone;
}
iEngineActive = 1;
return true;
}
else
{
else {
iEngineActive = 0;
return false;
}