mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 12:19:18 +02:00
build 180331. minor bug fixes
This commit is contained in:
@@ -3167,8 +3167,10 @@ void TMoverParameters::CompressorCheck(double dt)
|
|||||||
if( Compressor > MaxCompressor ) {
|
if( Compressor > MaxCompressor ) {
|
||||||
// wyłącznik ciśnieniowy jest niezależny od sposobu zasilania
|
// wyłącznik ciśnieniowy jest niezależny od sposobu zasilania
|
||||||
// TBD, TODO: don't operate the lock without battery power?
|
// TBD, TODO: don't operate the lock without battery power?
|
||||||
if( ( CompressorPower == 0 )
|
if( ( ( CompressorPower == 0 )
|
||||||
|| ( CompressorPower == 3 ) ) {
|
|| ( 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 the compressor is powered directly by the engine the lock can't turn it off and instead just changes the output
|
||||||
if( false == CompressorGovernorLock ) {
|
if( false == CompressorGovernorLock ) {
|
||||||
// emit relay sound when the lock engages (the state change itself is below) and presumably changes where the air goes
|
// emit relay sound when the lock engages (the state change itself is below) and presumably changes where the air goes
|
||||||
|
|||||||
@@ -415,7 +415,9 @@ void TTrack::Load(cParser *parser, Math3D::vector3 pOrigin)
|
|||||||
>> fSoundDistance;
|
>> fSoundDistance;
|
||||||
fTrackWidth2 = fTrackWidth; // rozstaw/szerokość w punkcie 2, na razie taka sama
|
fTrackWidth2 = fTrackWidth; // rozstaw/szerokość w punkcie 2, na razie taka sama
|
||||||
parser->getTokens(2);
|
parser->getTokens(2);
|
||||||
*parser >> iQualityFlag >> iDamageFlag;
|
*parser
|
||||||
|
>> iQualityFlag
|
||||||
|
>> iDamageFlag;
|
||||||
if (iDamageFlag & 128)
|
if (iDamageFlag & 128)
|
||||||
iAction |= 0x80; // flaga wykolejania z powodu uszkodzenia
|
iAction |= 0x80; // flaga wykolejania z powodu uszkodzenia
|
||||||
parser->getTokens();
|
parser->getTokens();
|
||||||
|
|||||||
Reference in New Issue
Block a user