Mercurial > hg > dmlib
diff jloadxm.c @ 183:a65f0c3deaa7
Some more player logic cleanups and variable renames.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 14:58:29 +0300 |
parents | 82b825bb08b0 |
children | a89500f26dde |
line wrap: on
line diff
--- a/jloadxm.c Sat Oct 06 13:25:37 2012 +0300 +++ b/jloadxm.c Sat Oct 06 14:58:29 2012 +0300 @@ -219,19 +219,17 @@ (void) e; (void) instr; // Convert envelope points - d->points[0].frame = s->points[0].frame; - d->points[0].value = s->points[0].value; for (i = 0; i < XM_MaxEnvPoints; i++) { - d->points[i + 1].frame = s->points[i].frame + 1; - d->points[i + 1].value = s->points[i].value; + d->points[i].frame = s->points[i].frame; + d->points[i].value = s->points[i].value; } // Convert other values - d->npoints = s->npoints + 1; - d->sustain = s->sustain + 1; - d->loopS = s->loopS + 1; - d->loopE = s->loopE + 1; + d->npoints = s->npoints; + d->sustain = s->sustain; + d->loopS = s->loopS; + d->loopE = s->loopE; // Check if the envelope is used if (s->flags & 0x01)