Mercurial > hg > dmlib
diff jssplr.c @ 187:e59ea366b13d
Sanitize tick handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 16:28:04 +0300 |
parents | dc22e3f77c9a |
children | 47c327fb321a |
line wrap: on
line diff
--- a/jssplr.c Sat Oct 06 16:25:15 2012 +0300 +++ b/jssplr.c Sat Oct 06 16:28:04 2012 +0300 @@ -1415,15 +1415,13 @@ //fprintf(stderr, "1: tick=%d, order=%d, iPattern=%d, row=%d\n", mp->tick, mp->order, mp->npattern, mp->row); // Check for init-tick - if (mp->tick < 0) + if (mp->tick == jsetNotSet) { // Initialize pattern - if (mp->order != jsetNotSet) - jmpSetNewOrder(mp, mp->order); - mp->newRow = 0; mp->newRowSet = TRUE; mp->tick = mp->speed; + mp->patternDelay = 0; } //fprintf(stderr, "2: tick=%d, order=%d, iPattern=%d, row=%d\n", mp->tick, mp->order, mp->npattern, mp->row);