Skip to content

Commit

Permalink
fix UMAPINFO music when using -skisec
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Oct 17, 2023
1 parent 46eeb2e commit f69d621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ static void G_DemoSkipTics(void)

if (playback_skiptics < curtic)
{
playback_skiptics = 0;
G_EnableWarp(false);
S_RestartMusic();
playback_skiptics = 0;
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/s_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,15 +536,14 @@ void S_ChangeMusInfoMusic (int lumpnum, int looping)
{
musicinfo_t *music;

if (nomusicparm)
if (PLAYBACK_SKIP)
{
musinfo.current_item = lumpnum;
return;
}

// [crispy] play no music if this is not the right map
if (nodrawers && singletics)
if (nomusicparm)
{
musinfo.current_item = lumpnum;
return;
}

Expand Down

0 comments on commit f69d621

Please sign in to comment.