summaryrefslogtreecommitdiff
path: root/hercules/code/clienttoserver/maps.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 03:14:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 03:14:35 +0300
commit460822ea6cef840e0f478918547a806b231c3dc6 (patch)
tree729118f0273a182b62628aae87ae8c9fe9b5f1c2 /hercules/code/clienttoserver/maps.py
parentd3648ee52a4860111afe9049713d788f60e5b588 (diff)
downloadevol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.gz
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.bz2
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.xz
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.zip
Fix different issues in tools found by pyflakes.
Diffstat (limited to 'hercules/code/clienttoserver/maps.py')
-rw-r--r--hercules/code/clienttoserver/maps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hercules/code/clienttoserver/maps.py b/hercules/code/clienttoserver/maps.py
index ee98ed1..b8ee14c 100644
--- a/hercules/code/clienttoserver/maps.py
+++ b/hercules/code/clienttoserver/maps.py
@@ -11,7 +11,7 @@ import struct
import StringIO
from xml.dom import minidom
-from code.fileutils import *
+from code.fileutils import makeDir, writeInt16, writeInt32, writeMapName, writeData
def getTmxFiles(srcDir):
names = []
@@ -150,7 +150,7 @@ def recreateMapCache():
print "map format not supported: " + fileName
continue
- comp = zlib.compressobj()
+ #comp = zlib.compressobj()
binData = struct.pack(str(len(tiles))+"B", *tiles)
binData = zlib.compress(binData)
idx = fileName.rfind("/") + 1