mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- Fixed: Don't start the MAPINFO music just to have it replaced by the saved music when returning to a level in a hub.
SVN r4175 (trunk)
This commit is contained in:
parent
478bfa6cf1
commit
ba0e0c2914
1 changed files with 3 additions and 2 deletions
|
@ -446,8 +446,9 @@ void S_Start ()
|
||||||
// start new music for the level
|
// start new music for the level
|
||||||
MusicPaused = false;
|
MusicPaused = false;
|
||||||
|
|
||||||
// [RH] This is a lot simpler now.
|
// Don't start the music if loading a savegame, because the music is stored there.
|
||||||
if (!savegamerestore)
|
// Don't start the music if revisiting a level in a hub for the same reason.
|
||||||
|
if (!savegamerestore && (level.info->snapshot == NULL || !level.info->isValid()))
|
||||||
{
|
{
|
||||||
if (level.cdtrack == 0 || !S_ChangeCDMusic (level.cdtrack, level.cdid))
|
if (level.cdtrack == 0 || !S_ChangeCDMusic (level.cdtrack, level.cdid))
|
||||||
S_ChangeMusic (level.Music, level.musicorder);
|
S_ChangeMusic (level.Music, level.musicorder);
|
||||||
|
|
Loading…
Reference in a new issue