diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
commit | 38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch) | |
tree | 6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/code/servertoclient/maps.py | |
parent | 9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff) | |
download | messworld-tools-master.tar.gz messworld-tools-master.tar.bz2 messworld-tools-master.tar.xz messworld-tools-master.zip |
Diffstat (limited to 'hercules/code/servertoclient/maps.py')
-rw-r--r-- | hercules/code/servertoclient/maps.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/code/servertoclient/maps.py b/hercules/code/servertoclient/maps.py index 0f1ca5b..7ac7e4f 100644 --- a/hercules/code/servertoclient/maps.py +++ b/hercules/code/servertoclient/maps.py @@ -20,7 +20,7 @@ def covertToTmx(f, mapsCount): tmx = readFile("templates/template.tmx") for i in xrange(0, mapsCount): name = readMapName(f) - print "converting map [{0:4}/{1:4}]: {2}".format(i, mapsCount + 1, name) + print("converting map [{0:4}/{1:4}]: {2}".format(i, mapsCount + 1, name)) sx = readInt16(f) sy = readInt16(f) sz = readInt32(f) @@ -37,11 +37,11 @@ def covertToTmx(f, mapsCount): if x + 1 == sx and y + 1 == sy: ground = ground + tile[0] collision = collision + tile[1] - fringe = fringe + "0"; + fringe = fringe + "0" else: ground = ground + tile[0] + "," collision = collision + tile[1] + "," - fringe = fringe + "0,"; + fringe = fringe + "0," ground = ground + "\n" collision = collision + "\n" fringe = fringe + "\n" |