17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-13 00:34:30 +01:00

Drop redundant comparisons with true/false

In the conditions this PR adds; no change in behaviour.
This commit is contained in:
pwarszawski
2026-09-29 09:47:51 +02:00
parent ce87aa0e09
commit 4f2dfd9318
3 changed files with 5 additions and 5 deletions

View File

@@ -327,7 +327,7 @@ void TNESt3::Init( double const PP, double const HPP, double const LPP, double c
double TNESt3::GetRapidRatio(double const Vel) const
{
// ESt3 has no rapid relay, and with disc brakes the rapid step stays engaged at all speeds
if( ( PrzekRapid == nullptr ) || ( true == RapidStaly ) ) {
if( ( PrzekRapid == nullptr ) || RapidStaly ) {
return 1.0;
}
// a braking vehicle comes from above, so the step is still engaged down to the speed