Skip to content

Commit

Permalink
This should fix animated hitflames not starting from the beginning of…
Browse files Browse the repository at this point in the history
… the animation.
  • Loading branch information
mdsitton committed Jun 17, 2011
1 parent 39d4e29 commit 20abc06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Instrument.py
Expand Up @@ -876,7 +876,7 @@ def renderFlames(self, song, pos, controls):
self.HCountAni = False
if self.HCount2 >= self.HFrameLimit2:
self.HCountAni = True
if event.flameCount < flameLimitHalf:
if self.HCount2 < self.HFrameLimit2:
HIndex = (self.HCount2 * self.HFrameLimit2 - (self.HCount2 * self.HFrameLimit2) % self.HFrameLimit2) / self.HFrameLimit2
if HIndex >= self.HFrameLimit2 and self.HCountAni != True:
HIndex = 0
Expand Down Expand Up @@ -927,6 +927,9 @@ def renderFlames(self, song, pos, controls):

event.flameCount += 1

if self.hitflamesAnim and self.HCount2 > self.HFrameLimit2:
self.HCount2 = 0

def renderNote(self, length, sustain, color, tailOnly = False, isTappable = False, fret = 0, spNote = False, isOpen = False, spAct = False):

if tailOnly:
Expand Down

0 comments on commit 20abc06

Please sign in to comment.