Fixed playptmod obeying MOD restart position

CQTexperiment
Chris Moeller 2014-05-24 17:53:02 -07:00
parent f090a8035c
commit 08453b00ae
1 changed files with 2 additions and 2 deletions

View File

@ -2616,7 +2616,7 @@ static void nextPosition(player *p)
p->modOrder++; p->modOrder++;
if (p->modOrder >= p->source->head.orderCount) if (p->modOrder >= p->source->head.orderCount)
p->modOrder = 0; p->modOrder = (p->source->head.format == FORMAT_STK) ? 0 : p->source->head.restartPos;
p->modPattern = p->source->head.order[p->modOrder]; p->modPattern = p->source->head.order[p->modOrder];
@ -2905,7 +2905,7 @@ void playptmod_GetInfo(void *_p, playptmod_info *i)
{ {
order++; order++;
if (order >= p->source->head.orderCount) if (order >= p->source->head.orderCount)
order = p->source->head.restartPos; order = (p->source->head.format == FORMAT_STK) ? 0 : p->source->head.restartPos;
row = p->PBreakPosition; row = p->PBreakPosition;
pattern = p->source->head.order[order]; pattern = p->source->head.order[order];