Skip to content

Commit

Permalink
Fix some drum crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Jun 11, 2011
1 parent 4a713db commit fbe1c5b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Drum.py
Expand Up @@ -119,6 +119,8 @@ def __init__(self, engine, playerObj, editorMode = False, player = 0):
self.boardWidth = 3.0
self.boardLength = 9.0

self.drumFretButtons = None

#blazingamer
self.opencolor = self.fretColors[5]
self.rockLevel = 0.0
Expand All @@ -143,6 +145,9 @@ def __init__(self, engine, playerObj, editorMode = False, player = 0):

def loadNotes(self):
super(Drum, self).loadNotes()
engine = self.engine

get = lambda file: self.checkPath("tails", file)

if self.twoDnote == True:
if self.noteSpin:
Expand Down Expand Up @@ -172,6 +177,10 @@ def loadNotes(self):

def loadFrets(self):
super(Drum, self).loadFrets()
engine = self.engine
themename = self.engine.data.themeLabel

get = lambda file: self.checkPath("tails", file)

if self.twoDkeys == True: #death_au
if engine.loadImgDrawing(self, "fretButtons", os.path.join("themes",themename, "frets", "drum", "fretbuttons.png")):
Expand Down

0 comments on commit fbe1c5b

Please sign in to comment.