mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 18:47:06 +01:00
a81d149541
report_derailment() writes the memory cell at once and only queues the events, which run later in Events.update(). A collision derails both vehicles in one frame, so when <A>:derailed ran, __simulation.derailment already held B. The scenery can now declare the memory cell <vehicle>:derailed, written the same way and with the same three fields as __simulation.derailment, for the events of that one vehicle to read. Documented that __simulation.derailment keeps only the last derailment of a frame; eu07_td_off_track_end_scenery_told checks the cell of the locomotive now.