18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 00:45:29 +01:00
Files
maszyna/physics/components
jerrrrycho 6c3179029a refactor: the cause of a derailment in reason_of(), the log in log_derailment()
The nested conditional operators mapping DerailReason and the verdict of
the criteria to derailment::reason in Derail(), derail() and
derail_in_collision() go into the switch of reason_of() (S3358), and the
log of Derail() into log_derailment(); Derail() returns early instead of
nesting its body (S3776). The behaviour stays the same for every caller.
2026-11-30 00:16:38 +01:00
..