17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-12 12:45:17 +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

@@ -356,7 +356,7 @@ private:
// how far short of a stop the AI aims: in train running the middle of the 8-15 m window before a signal,
// otherwise (a W4 stop point, shunting, coupling) half the minimum proximity distance, as before
double stopping_margin() const {
return ( ( OrderCurrentGet() & Obey_train ) != 0 ) && ( false == IsAtPassengerStop ) ?
return ( ( OrderCurrentGet() & Obey_train ) != 0 ) && !IsAtPassengerStop ?
fMinProximityDist + 3.5 :
0.5 * fMinProximityDist; }
void apply_independent_brake_only();