Skip to content

Commit

Permalink
fix that pesky Starpower/Overdrive bug for good, the last commit allo…
Browse files Browse the repository at this point in the history
…wed me to do so.
  • Loading branch information
mdsitton committed Jun 12, 2011
1 parent 7548184 commit 3d9ff14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Instrument.py
Expand Up @@ -1250,7 +1250,7 @@ def renderNotes(self, visibility, song, pos):
if event.finalStar and self.spEnabled:
spNote = True
if event.played or event.hopod:
if event.flameCount == 0:
if event.flameCount < 1 and not self.starPowerGained:
if self.starPower < 50 and self.isDrum: #not enough starpower to activate yet, kill existing drumfills
for dfEvent in self.drumFillEvents:
dfEvent.happened = True
Expand All @@ -1267,8 +1267,6 @@ def renderNotes(self, visibility, song, pos):

if self.starPower < 100:
self.starPower += 25
if self.hitFlamesPresent == False:
event.flameCount = 1
if self.starPower > 100:
self.starPower = 100
self.overdriveFlashCount = 0 #MFH - this triggers the oFlash strings & timer
Expand Down Expand Up @@ -1431,16 +1429,14 @@ def renderOpenNotes(self, visibility, song, pos):
if event.finalStar and self.spEnabled:
spNote = True
if event.played or event.hopod:
if event.flameCount == 0:
if event.flameCount < 1 and not self.starPowerGained:

if self.starPower < 50: #not enough starpower to activate yet, kill existing drumfills
for dfEvent in self.drumFillEvents:
dfEvent.happened = True

if self.starPower < 100:
self.starPower += 25
if self.hitFlamesPresent == False:
event.flameCount = 1
if self.starPower > 100:
self.starPower = 100
self.overdriveFlashCount = 0 #MFH - this triggers the oFlash strings & timer
Expand Down

0 comments on commit 3d9ff14

Please sign in to comment.