diff --git a/McZapkie/Mover.cpp b/McZapkie/Mover.cpp index 1958bd0a..3742a739 100644 --- a/McZapkie/Mover.cpp +++ b/McZapkie/Mover.cpp @@ -3167,8 +3167,10 @@ void TMoverParameters::CompressorCheck(double dt) if( Compressor > MaxCompressor ) { // wyłącznik ciśnieniowy jest niezależny od sposobu zasilania // TBD, TODO: don't operate the lock without battery power? - if( ( CompressorPower == 0 ) - || ( CompressorPower == 3 ) ) { + if( ( ( CompressorPower == 0 ) + || ( CompressorPower == 3 ) ) + && ( ( EngineType == DieselEngine ) + || ( EngineType == DieselElectric ) ) ) { // if the compressor is powered directly by the engine the lock can't turn it off and instead just changes the output if( false == CompressorGovernorLock ) { // emit relay sound when the lock engages (the state change itself is below) and presumably changes where the air goes diff --git a/Track.cpp b/Track.cpp index c7082bb4..596f3116 100644 --- a/Track.cpp +++ b/Track.cpp @@ -415,7 +415,9 @@ void TTrack::Load(cParser *parser, Math3D::vector3 pOrigin) >> fSoundDistance; fTrackWidth2 = fTrackWidth; // rozstaw/szerokość w punkcie 2, na razie taka sama parser->getTokens(2); - *parser >> iQualityFlag >> iDamageFlag; + *parser + >> iQualityFlag + >> iDamageFlag; if (iDamageFlag & 128) iAction |= 0x80; // flaga wykolejania z powodu uszkodzenia parser->getTokens(); diff --git a/version.h b/version.h index daaacb26..1ed2cbd9 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #pragma once #define VERSION_MAJOR 18 -#define VERSION_MINOR 330 +#define VERSION_MINOR 331 #define VERSION_REVISION 0