mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 23:17:56 +01:00
2883887f5c
The cache of the trains was a function-local static of vehicle_table::update_brake_pipes(), shared by every vehicle_table and kept from one scenery to the next; it's now a member next to m_brakepipes, the list it is for. The inputs of each step were read into a new vector, twice per step (the brake and the main reservoir pipe); they're now read into scratch storage of the cache, swapped with the kept inputs when they differ.