summaryrefslogtreecommitdiff
path: root/hercules/code/server/maps.py
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
committerjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
commit38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch)
tree6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/code/server/maps.py
parent9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff)
downloadmessworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip
updated all leftover scripts to py3HEADmaster
Diffstat (limited to 'hercules/code/server/maps.py')
-rw-r--r--hercules/code/server/maps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/code/server/maps.py b/hercules/code/server/maps.py
index 2ef0173..5e65feb 100644
--- a/hercules/code/server/maps.py
+++ b/hercules/code/server/maps.py
@@ -10,14 +10,14 @@ import zlib
from code.fileutils import readMapName, readInt16, readInt32, readData, makeDir
def listMapCache(f, mapsCount):
- print "Known maps:"
- print "{0:12} {1:<4}x {2:<4} {3:<10}".format("Map name", "sx", "sy", "compressed size")
+ print("Known maps:")
+ print("{0:12} {1:<4}x {2:<4} {3:<10}".format("Map name", "sx", "sy", "compressed size"))
for i in xrange(0, mapsCount):
name = readMapName(f)
sx = readInt16(f)
sy = readInt16(f)
sz = readInt32(f)
- print "{0:12} {1:<4}x {2:<4} {3:<10}".format(name, sx, sy, sz)
+ print("{0:12} {1:<4}x {2:<4} {3:<10}".format(name, sx, sy, sz))
f.seek(sz, 1)
def extractMaps(f, mapsCount):