From 92b7fb72a811030dc604b3f6e1d708727fb7db37 Mon Sep 17 00:00:00 2001 From: Matthew Sitton Date: Tue, 15 Sep 2015 23:34:50 -0500 Subject: [PATCH] Fix the fails bug that I seemed to have introduced 5 years ago in my first commit. Things have come full circle :) --- .../guitarscene/instruments/Instrument.py | 33 +++++-------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/fofix/game/guitarscene/instruments/Instrument.py b/fofix/game/guitarscene/instruments/Instrument.py index f4d101c8a..2ebe95f94 100644 --- a/fofix/game/guitarscene/instruments/Instrument.py +++ b/fofix/game/guitarscene/instruments/Instrument.py @@ -2023,36 +2023,21 @@ def renderTails(self, visibility, song, pos, killswitch): else: isTappable = True - # Clip the played notes to the origin - #myfingershurt: this should be loaded once at init, not every render... - if self.notedisappear == 0:#Notes keep on going when missed - if event.played or event.hopod:#if the note isnt missed + + if z < 0:# Note past frets + if event.played or event.hopod:# note hit tailOnly = True length += z z = 0 if length <= 0: continue - if z < 0 and not (event.played or event.hopod):#if the note is missed - color = (.6, .6, .6, .5 * visibility * f) - elif self.notedisappear == 1:#Notes disappear when missed - if z < 0:#if note past frets - if event.played or event.hopod:#if note was hit - tailOnly = True - length += z - z = 0 - if length <= 0: - continue - else:#note missed + else:# note is missed + if self.notedisappear == 0:#Notes keep on going when missed color = (.6, .6, .6, .5 * visibility * f) - if self.notedisappear == 2:#turn red when missed - if event.played or event.hopod: #if the note isnt missed - tailOnly = True - length += z - z = 0 - if length <= 0: - continue - if z < 0 and not (event.played or event.hopod): #if the note is missed - color = (1, 0, 0, 1)#turn note red + elif self.notedisappear == 1:#Notes disappear when missed + color = (0.0, 0.0, 0.0, 0.0) + if self.notedisappear == 2:#turn red when missed + color = (1, 0, 0, 1) big = False self.bigMax = 0