18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/vehicle
jerrrrycho 236a25eacb Speed table: report a signal index that points past the end of the table (#489)
* fix(ai): report a signal index past the end of the speed table

TableTraceRoute() drops SemNextIndex / SemNextStopIndex when they point
past the end of the speed table. This used to catch the indices
TablePurger() and TableCheck() left behind; #178 fixed both, and nothing
else shrinks the table without resetting them, so the check should never
fire. It stays as a safety net, but now writes to errors.txt when it does
fire (vehicle, index, table size, last track and its distance, scan
range), so a new way of getting there is noticed instead of being hidden.

Not seen in the scenario suite (37 cases) nor in two runs of the whole
L053 poranek scenery with every train driven by AI (about 75 min of
simulation each).

* fix(ai): the stale index report captures what it uses and is built with std::format
2026-11-25 05:23:53 +01:00
..