ref: eaad8176c626959111f3c13fc82b1c4ad02a1e83
parent: 27406abff56cb47d39c1a9e2d4f50336a882be49
author: Chris Moeller <[email protected]>
date: Mon Jul 22 15:56:28 EDT 2013
Fixed envelope start and end shortcuts
--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -3832,9 +3832,9 @@
ASSERT(envelope->n_nodes > 0);
- if (pe->next_node <= 0)
+ if (pe->tick <= 0)
pe->value = envelope->node_y[0] << IT_ENVELOPE_SHIFT;
- else if (pe->next_node >= envelope->n_nodes) {
+ else if (pe->tick >= envelope->node_t[envelope->n_nodes-1]) {
pe->value = envelope->node_y[envelope->n_nodes-1] << IT_ENVELOPE_SHIFT;
return 1;
} else {