Libre-TrainSim
Libre-TrainSim copied to clipboard
Door animations and SFX unaffected by pausing
Summary
When pausing while opening/closing doors, the animations and sound effects continue playing. The door logic seems to be correctly paused, though, as the passengers continue entering the (visually already closed) door.
How to reproduce
Steps to reproduce the behavior:
- Enter any track (e.g. "Tutorials/Free Driving") using any train (JFR1-Red or JFR1-Grey)
- Go to external camera
- Close the doors
- Pause while the doors are closing and observe
Observed behavior
The door animations continue playing while paused. The passengers still enter the door after unpausing for the time the door would have taken to close.
Also, the door sound effects continue playing while paused.
Expected behavior
The door animations and their sound effects are paused correctly.
Version
- Game Version: current master (292bf45e9d1f587795ad442bd3d1c1a0b9a78d8f)
Additional information
Probably related to #503.
https://user-images.githubusercontent.com/22664233/226925505-48b0c246-aca1-47a2-b64e-2709a76a2113.mp4
This, https://github.com/Libre-TrainSim/Libre-TrainSim/issues/477 and #503 happen because the wagon and the player are PAUSE_MODE_PROCESS for ingame_pause. Maybe we should change something with ingame_pause to avoid futur bugs.