diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-30 19:05:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-30 19:05:11 +0300 |
commit | 63f135d8af2a81a78626d6229d077e3f91a35288 (patch) | |
tree | 3d00414c8602b71fe2928de14567574a59b68df5 /hercules | |
parent | 1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f (diff) | |
download | evol-tools-63f135d8af2a81a78626d6229d077e3f91a35288.tar.gz evol-tools-63f135d8af2a81a78626d6229d077e3f91a35288.tar.bz2 evol-tools-63f135d8af2a81a78626d6229d077e3f91a35288.tar.xz evol-tools-63f135d8af2a81a78626d6229d077e3f91a35288.zip |
hercules: fix mapcache.dat creation from tmx maps.
Diffstat (limited to 'hercules')
-rwxr-xr-x | hercules/maptool.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hercules/maptool.py b/hercules/maptool.py index c8b65cc..3b30d61 100755 --- a/hercules/maptool.py +++ b/hercules/maptool.py @@ -529,6 +529,7 @@ def recreateMapCache(): writeInt32(w, 0) # file size writeInt16(w, 0) # maps count writeInt16(w, 0) # padding + sz = sz + 8 for fileName in getTmxFiles(srcDir): dom = minidom.parse(fileName) root = dom.documentElement @@ -587,7 +588,7 @@ def recreateMapCache(): writeData(w, binData) print fileName mapsCount = mapsCount + 1 - sz = sz + 8 + len(binData) + sz = sz + 12 + 8 + len(binData) break w.seek(0); writeInt32(w, sz) |