- fix XM started right after game paused

This commit is contained in:
Ilya Shurumov 2021-05-06 23:08:15 +06:00
parent 6f0492444b
commit c08f97dc87
2 changed files with 2 additions and 4 deletions

View File

@ -1786,7 +1786,7 @@ void InitMusic(int musicnum)
InitXMData((unsigned char*)music_pt, 0, 0);
// 8 XM channels start after first sfx channels
Song_ID = XM_Init(VABID, 0, 0, MAX_SFX_CHANNELS, 1, -1, 0, 0);
Song_ID = XM_Init(VABID, 0, 0, MAX_SFX_CHANNELS, 1, -1, 0x80, 0);
if (music_paused != 0)
XM_Pause(Song_ID);

View File

@ -1348,10 +1348,8 @@ void StepGame(void)
int i;
PLAYER* pl;
if (CameraCnt == 3)
{
if (CameraCnt == 3 && !pauseflag)
StartXM(gDriver1Music);
}
if (doSpooling)
{