mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 00:22:42 +01:00
d28b908ca4
No file of rendering/ includes physics/vehicle.h any more. What the renderers read of a vehicle comes through a few queries of TDynamicObject (vehicle/dynamic/lights.cpp): its dimensions, its speed, its active cab, the light of its compartments, the adapters of its couplers, the lights switched on at an end, the low voltage for them, and the multiplier and the colour of its headlights. The shares of the speed and the opacity of the exhaust smoke (ExhaustScales()) move out of the particles into the vehicle, as they are. The headlights pick their multiplier once, by the dimming and the high beam switches, where the light array repeated the same four branches twice; the light of a switched off end still goes to zero as before.