Skip to content
Snippets Groups Projects
Commit 78b04180 authored by Marco Z's avatar Marco Z
Browse files

Loop point modulo by length

parent c18372dd
No related branches found
No related tags found
No related merge requests found
......@@ -947,6 +947,11 @@ boolean I_SetMusicLoopPoint(UINT32 looppoint)
return false;
else
{
UINT32 length = I_GetMusicLength();
if (length > 0)
looppoint %= length;
loop_point = max((float)(looppoint / 1000.0L), 0);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment