Skip to content

Commit

Permalink
fix color for flames on drums
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Jun 12, 2011
1 parent 121990c commit 06df23a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Instrument.py
Expand Up @@ -838,7 +838,16 @@ def renderFlames(self, song, pos, controls):
if (event.played or event.hopod) and event.flameCount < flameLimit:
if not self.disableFlameSFX:
if not flameColor == self.spColor:
flameColor = self.flameColors[event.number]
if self.isDrum:
if event.number == 0:
flameColor = self.flameColors[4]
elif event.number == 4:
flameColor = self.flameColors[0]
else:
flameColor = self.flameColors[event.number]
else:
flameColor = self.flameColors[event.number]

ms = math.sin(self.time) * .25 + 1

if self.isDrum:
Expand Down

0 comments on commit 06df23a

Please sign in to comment.