diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
commit | 460822ea6cef840e0f478918547a806b231c3dc6 (patch) | |
tree | 729118f0273a182b62628aae87ae8c9fe9b5f1c2 /hercules/code/servertoclient/sprites.py | |
parent | d3648ee52a4860111afe9049713d788f60e5b588 (diff) | |
download | tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.gz tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.bz2 tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.xz tools-460822ea6cef840e0f478918547a806b231c3dc6.zip |
Fix different issues in tools found by pyflakes.
Diffstat (limited to 'hercules/code/servertoclient/sprites.py')
-rw-r--r-- | hercules/code/servertoclient/sprites.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/hercules/code/servertoclient/sprites.py b/hercules/code/servertoclient/sprites.py index 9873d40..5dad9d1 100644 --- a/hercules/code/servertoclient/sprites.py +++ b/hercules/code/servertoclient/sprites.py @@ -3,13 +3,11 @@ # Copyright (C) 2015 Evol Online # Author: Andrei Karas (4144) +import array import os from PIL import Image -from PIL import ImageDraw -from sets import Set -from code.fileutils import * -from code.stringutils import * +from code.fileutils import readInt8, readInt16, readInt32, makeDir, readFile, saveFile, skipData, readData, findFileIn class ActClass: pass @@ -48,7 +46,7 @@ def readIndexedRLEImage(f, spr): image.data = data compressSize = readInt16(f) - uncompressedSize = image.width * image.height + #uncompressedSize = image.width * image.height #print "uncompressed size=" + str(uncompressedSize) #print "compressed size=" + str(compressSize) @@ -160,7 +158,7 @@ def saveSpriteImage(act, spr, spriteDir, spriteName): anim = act.animations[animN] for spriteN in range(0, anim.nsprites): sprite = anim.sprites[spriteN] - key = [] +# key = [] # for frameN in range(0, sprite.nframes): # frame = sprite.frames[frameN] # idf = frame.frameIndex @@ -254,7 +252,7 @@ def extractSpriteAnimData(act, spr, actIndex, direction): anim = act.animations[actIndex] for spriteN in range(0, anim.nsprites): - sprite = anim.sprites[spriteN] + #sprite = anim.sprites[spriteN] #for frameN in range(0, sprite.nframes): #frame = sprite.frames[frameN] #frm = frame.frameIndex |