Skip to content

Commit

Permalink
Custom neck str fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzion committed Sep 30, 2010
1 parent 7158b64 commit 69c1e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Neck.py
Expand Up @@ -159,7 +159,7 @@ def __init__(self, engine, instrument, playerObj):
neckfiles = [ f for f in os.listdir(themeNeckPath) if os.path.isfile(os.path.join(themeNeckPath, f)) ]
neckfiles.sort()
for i in neckfiles:
themeNeck.append(unicode(i))
themeNeck.append(str(i))
if len(themeNeck) > 0:
i = random.randint(0,len(themeNeck)-1)
if engine.loadImgDrawing(self, "neckDrawing", os.path.join("themes", themename, "necks", themeNeck[i]), textureSize = (256, 256)):
Expand All @@ -182,7 +182,7 @@ def __init__(self, engine, instrument, playerObj):
if( os.path.splitext(i)[0] == "randomneck" or os.path.splitext(i)[0] == "overdriveneck" ):
continue
else:
self.neck.append(unicode(i)[:-4]) # evilynux - filename w/o extension
self.neck.append(str(i)[:-4]) # evilynux - filename w/o extension

i = random.randint(0,len(self.neck)-1)
if engine.loadImgDrawing(self, "neckDrawing", os.path.join("necks",self.neck[i]+".png"), textureSize = (256, 256)):
Expand Down

0 comments on commit 69c1e84

Please sign in to comment.