From 63f135d8af2a81a78626d6229d077e3f91a35288 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Oct 2014 19:05:11 +0300 Subject: hercules: fix mapcache.dat creation from tmx maps. --- hercules/maptool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2