Skip to content

Commit

Permalink
applied a patch to fix handling of s3m/it single-row loops:
Browse files Browse the repository at this point in the history
Konstanty#30 (comment)
might possibly need more work, but hey...
  • Loading branch information
sezero committed Nov 4, 2016
1 parent b8876c6 commit 92d855e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/snd_fx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,7 +2120,12 @@ int CSoundFile::PatternLoop(MODCHANNEL *pChn, UINT param)
if (pChn->nPatternLoopCount)
{
pChn->nPatternLoopCount--;
if (!pChn->nPatternLoopCount) return -1;
if (!pChn->nPatternLoopCount)
{
if (m_nType & (MOD_TYPE_S3M|MOD_TYPE_IT))
pChn->nPatternLoop = m_nRow + 1;
return -1;
}
} else
{
MODCHANNEL *p = Chn;
Expand Down

0 comments on commit 92d855e

Please sign in to comment.