Skip to content

Commit

Permalink
some fixes for my previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Jun 17, 2011
1 parent 58ad60a commit 39d4e29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Instrument.py
Expand Up @@ -761,7 +761,7 @@ def renderHitTrails(self, controls):

w = self.boardWidth / self.strings

if self.starPowerActive or self.spNote:
if self.starPowerActive or self.spNote == True:
flameColor = self.spColor
else:
flameColor = 0
Expand Down Expand Up @@ -1252,6 +1252,8 @@ def renderNotes(self, visibility, song, pos):
elif self.spRefillMode == 2 and song.midiStyle != 1: #mode 2 = refill based on MIDI type
self.spEnabled = False

self.spNote = False

if event.star:
self.starNotesInView = True
if event.finalStar:
Expand Down Expand Up @@ -1420,7 +1422,7 @@ def renderOpenNotes(self, visibility, song, pos):
length = 0

tailOnly = False
spNote = False
self.spNote = False

#myfingershurt: user setting for starpower refill / replenish notes
if self.starPowerActive:
Expand Down Expand Up @@ -1475,7 +1477,7 @@ def renderOpenNotes(self, visibility, song, pos):

glPushMatrix()
glTranslatef(x, 0, z)
self.renderNote(length, sustain = sustain, color = color, tailOnly = tailOnly, isTappable = isTappable, fret = event.number, spNote = spNote, isOpen = isOpen)
self.renderNote(length, sustain = sustain, color = color, tailOnly = tailOnly, isTappable = isTappable, fret = event.number, spNote = self.spNote, isOpen = isOpen)
glPopMatrix()

#myfingershurt: end FOR loop / note rendering loop
Expand Down

0 comments on commit 39d4e29

Please sign in to comment.