mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 19:09:25 +02:00
The horn never reached anybody else. It is not a command a bystander can carry out: OnCommand_hornlowactivate sets MoverParameters->WarningSignal from inside a cab, and a peer that is not sitting in that cab has no TTrain for the vehicle, so the command was dropped on arrival. Only the result of it can travel, and it was not being sent. The vehicle state now carries what a vehicle is heard and seen doing rather than only what it is being told to do: the horn flags, the emergency brake horn and its alarm chain, the wheel revolutions and the engine revolutions. The last two are what turn the driven wheels and set the engine note, so somebody else's locomotive no longer sounds and looks like it is standing still while it rolls past. The state also goes out a little sooner, every sixth frame instead of every tenth: a horn can be pressed and let go inside a couple of frames, and an update that arrives after it is over is no use.