Skip to content

Commit 92d855e

Browse files
committed
applied a patch to fix handling of s3m/it single-row loops:
Konstanty#30 (comment) might possibly need more work, but hey...
1 parent b8876c6 commit 92d855e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/snd_fx.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,12 @@ int CSoundFile::PatternLoop(MODCHANNEL *pChn, UINT param)
21202120
if (pChn->nPatternLoopCount)
21212121
{
21222122
pChn->nPatternLoopCount--;
2123-
if (!pChn->nPatternLoopCount) return -1;
2123+
if (!pChn->nPatternLoopCount)
2124+
{
2125+
if (m_nType & (MOD_TYPE_S3M|MOD_TYPE_IT))
2126+
pChn->nPatternLoop = m_nRow + 1;
2127+
return -1;
2128+
}
21242129
} else
21252130
{
21262131
MODCHANNEL *p = Chn;

0 commit comments

Comments
 (0)