16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 11:39:19 +02:00

passenger exchange calculation tweak, vehicle brakes logic tweak

This commit is contained in:
tmj-fstate
2019-10-23 16:53:48 +02:00
parent bc8b3d72f3
commit fc7b1f2257
2 changed files with 10 additions and 1 deletions

View File

@@ -4013,6 +4013,9 @@ void TMoverParameters::UpdatePipePressure(double dt)
}
// ulepszony hamulec bezp.
auto const securitysystempresent { SecuritySystem.RadioStop || ( SecuritySystem.SystemType > 0 ) };
auto const lowvoltagepower { Battery || ConverterFlag };
if( ( true == RadioStopFlag )
|| ( true == AlarmChainFlag )
|| ( true == TestFlag( SecuritySystem.Status, s_SHPebrake ) )
@@ -4022,7 +4025,9 @@ void TMoverParameters::UpdatePipePressure(double dt)
// (if it's supposed to be broken coupler, such event sets alarmchainflag instead when appropriate)
|| ( true == TestFlag( EngDmgFlag, 32 ) )
*/
|| ( true == s_CAtestebrake ) ) {
|| ( true == s_CAtestebrake )
|| ( ( true == securitysystempresent )
&& ( false == lowvoltagepower ) ) ) {
dpMainValve = dpMainValve + PF( 0, PipePress, 0.15 ) * dt;
}
// 0.2*Spg