Skip to content

Commit

Permalink
Fix the fails bug that I seemed to have introduced 5 years ago in my …
Browse files Browse the repository at this point in the history
…first commit. Things have come full circle :)
  • Loading branch information
mdsitton committed Sep 16, 2015
1 parent 028d7e8 commit 92b7fb7
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions fofix/game/guitarscene/instruments/Instrument.py
Expand Up @@ -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
Expand Down

1 comment on commit 92b7fb7

@mdsitton
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*tails

Please sign in to comment.