Fix S_SetMusicLoopPoint wrong method; trigger only on is_looping

This commit is contained in:
mazmazz 2018-08-18 20:47:14 -04:00
parent 5f564f7798
commit 5487fd5be0
2 changed files with 2 additions and 2 deletions

View file

@ -1429,7 +1429,7 @@ UINT32 S_GetMusicLength(void)
boolean S_SetMusicLoopPoint(UINT32 looppoint)
{
return I_SetMusicPosition(looppoint);
return I_SetMusicLoopPoint(looppoint);
}
UINT32 S_GetMusicLoopPoint(void)

View file

@ -942,7 +942,7 @@ UINT32 I_GetMusicLength(void)
boolean I_SetMusicLoopPoint(UINT32 looppoint)
{
if (midimode || gme || !music || I_MusicType() == MU_MOD)
if (midimode || gme || !music || I_MusicType() == MU_MOD || !is_looping)
return false;
else
{