Skip to content

Commit

Permalink
Some personal preference code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Jun 4, 2011
1 parent 50aa578 commit eafbb2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Instrument.py
Expand Up @@ -795,7 +795,7 @@ def renderHitTrails(self, visibility, song, pos, controls):

#Alarian: Animated hitflames
if self.Hitanim:
self.HCount = self.HCount + 1
self.HCount += 1
if self.HCount > self.Animspeed-1:
self.HCount = 0
HIndex = (self.HCount * self.HFrameLimit - (self.HCount * self.HFrameLimit) % self.Animspeed) / self.Animspeed
Expand Down Expand Up @@ -880,7 +880,7 @@ def renderFlames(self, visibility, song, pos, controls):
texcoord = (0.0,0.0,1.0,1.0), multiples = True, alpha = True, color = flamecol)
#Alarian: Animated hitflames
else:
self.HCount = self.HCount + 1
self.HCount += 1
if self.HCount > self.Animspeed-1:
self.HCount = 0
HIndex = (self.HCount * self.HFrameLimit - (self.HCount * self.HFrameLimit) % self.Animspeed) / self.Animspeed
Expand Down Expand Up @@ -941,7 +941,7 @@ def renderFlames(self, visibility, song, pos, controls):
ff += 1.5 #ff first time is 2.75 after this

if self.Hitanim2 == True:
self.HCount2 = self.HCount2 + 1
self.HCount2 += 1
self.HCountAni = False
if self.HCount2 >= self.HFrameLimit2:
if not event.length > (1.4 * (60000.0 / event.noteBpm) / 4):
Expand Down Expand Up @@ -996,7 +996,7 @@ def renderFlames(self, visibility, song, pos, controls):
multiples = True, alpha = True, color = flamecol)

elif self.hitFlamesPresent == True and self.Hitanim2 == False:
self.HCount2 = self.HFrameLimit2
self.HCount2 = self.HFrameLimit2 + 1
self.HCountAni = True
if event.flameCount < flameLimitHalf:

Expand Down

0 comments on commit eafbb2c

Please sign in to comment.