Skip to content

Commit

Permalink
Random neck str fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzion committed Sep 30, 2010
1 parent abe3253 commit 7475f30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Neck.py
Expand Up @@ -192,6 +192,7 @@ def __init__(self, engine, instrument, playerObj):
self.neck = "defaultneck"
engine.loadImgDrawing(self, "neckDrawing", os.path.join("necks",self.neck+".png"), textureSize = (256, 256))
else:
self.neck = str(self.neck)
# evilynux - first assume the self.neck contains the full filename
if not engine.loadImgDrawing(self, "neckDrawing", os.path.join("necks",self.neck+".png"), textureSize = (256, 256)):
if not engine.loadImgDrawing(self, "neckDrawing", os.path.join("necks","Neck_"+self.neck+".png"), textureSize = (256, 256)):
Expand Down

0 comments on commit 7475f30

Please sign in to comment.