mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-27 23:57:09 +01:00
resetconsist (Stop and repair consist of the debug panel and of the vehicle window) cleared the damage flags, but kept Derailed, the stretches of the criteria, the distance gathered for them and the report of the monitor. A vehicle once derailed by the criteria and repaired then slid on with their friction after a derailment of the legacy kind, instead of stopping dead, and the friction of the ballast kept holding it whenever it stood. TMoverParameters::rerail() puts a vehicle back on the rails: dtrain_out off, Derailed none, the criteria from scratch, the monitor free to report the track again, a rail vehicle back on the axis of the track. repair_damage() does what resetconsist did to the damage (the flags, the engine damage, the wheel flats, the alarm chain) and rerails it; resetconsist and the road vehicles coming back from the pool of a road point use it. SetDamage taking dtrain_out off rerails the vehicle as well. A vehicle put on a track anew (consistteleport) starts the stretches of the criteria over, they were gathered on the track it left.