- fixed portal restoration on revisiting level in hub
Added function to FLevelLocals to test if map is being reentered https://forum.zdoom.org/viewtopic.php?t=60455
This commit is contained in:
parent
bd1525eb9d
commit
29d2e77840
3 changed files with 8 additions and 2 deletions
|
|
@ -470,7 +470,7 @@ void S_Start ()
|
|||
|
||||
// Don't start the music if loading a savegame, because the music is stored there.
|
||||
// Don't start the music if revisiting a level in a hub for the same reason.
|
||||
if (!savegamerestore && (level.info == nullptr || level.info->Snapshot.mBuffer == nullptr || !level.info->isValid()))
|
||||
if (!level.IsReentering())
|
||||
{
|
||||
if (level.cdtrack == 0 || !S_ChangeCDMusic (level.cdtrack, level.cdid))
|
||||
S_ChangeMusic (level.Music, level.musicorder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue