shithub: dumb

Download patch

ref: 347a1170d6d00ec2ea9db2a3667ee7c8d2ef422b
parent: b837698bcffa3952e5fa26e80ffc562e961002b9
author: Chris Moeller <kode54@gmail.com>
date: Sun Dec 23 08:31:41 EST 2012

Fixed envelope handling

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -3795,7 +3795,7 @@
 	}
 
 	pe->tick++;
-	while (pe->tick >= envelope->node_t[pe->next_node]) {
+    while (pe->tick > envelope->node_t[pe->next_node]) {
 		pe->next_node++;
 		if ((envelope->flags & IT_ENVELOPE_SUSTAIN_LOOP) && !(playing->flags & IT_PLAYING_SUSTAINOFF)) {
 			if (pe->next_node > envelope->sus_loop_end) {