Skip to content

Music playing state not changing with WinLevelInstant or Restart Mission #52

Open
@trigger-segfault

Description

@trigger-segfault

Describe the issue
When using the Debug_WinLevelInstant shortcut (LCtrl+LShift+L), the music is not stopped, and proceeds to continue while in the front end.

When pressing Restart Mission from the options menu, the music also does not stop, and continues to play during the the intro video and briefing.

Expected behaviour
Music is only intended to play when in a level, when not showing an objective message (briefing, missing complete/failed). Even though Debug_WinLevelInstant is a debug shortcut, the game should still function as expected.

The Restart Mission music issue is slightly different, in that you could argue it sounds better to keep the current track playing even during the restarted second briefing. The same goes for music playing when pressing the Replay Objective button.

Steps to reproduce (A)

  1. Open up a level.
  2. Enable DebugComplete / AllowDebugKeys.
  3. Press the Debug_WinLevelInstant shortcut (LCtrl+LShift+L).
  4. Music should continue to play while in the rewards screen and the rest of the front end.

Steps to reproduce (B)

  1. Open up a level.
  2. Open up the options menu.
  3. Press Restart Mission (or Replay Objective).
  4. Music should continue to play during the intro video and while briefing before starting the mission.

Additional information

  • Time played this session: 3 minutes.
  • Level: Driller Night!
  • Game speed: 100%
  • Graphics fix: dgVoodoo 2.55.4
  • Using mods: None

Steps to fix

  • WinLevelInstant
  • Restart Mission
  • Replay Objective

Possible solution (A)
Simply updating the music playing state in Lego_EndLevel (like is present in Objective_Update) should suffice.

Possible solution (B)
To fix the Restart Mission issue, update the music playing state in Level_Free.

To fix the issue with Replay Objective, the music playing state should be updated when calling Objective_SetStatus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    audioRelates to playing sound effects, music, and movies.original bugThis was an issue in the original game already.partially solvedThe issue is solved, but not in its entirety.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions