Libre-TrainSim icon indicating copy to clipboard operation
Libre-TrainSim copied to clipboard

Door animations and SFX unaffected by pausing

Open nalquas opened this issue 1 year ago • 1 comments

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:

  1. Enter any track (e.g. "Tutorials/Free Driving") using any train (JFR1-Red or JFR1-Grey)
  2. Go to external camera
  3. Close the doors
  4. 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

nalquas avatar Mar 22 '23 13:03 nalquas

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.

Jomosoto avatar Apr 07 '23 16:04 Jomosoto