diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-03 18:05:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-03 18:05:37 +0300 |
commit | b8c8111374536c95c6f3c3299e50fad3dbdb9c45 (patch) | |
tree | db2b670dc63efddc360395bf8019427a8b980dcf /hercules/code | |
parent | 15fd117bffbb134339711b5e327e1cf35f742c14 (diff) | |
download | evol-tools-b8c8111374536c95c6f3c3299e50fad3dbdb9c45.tar.gz evol-tools-b8c8111374536c95c6f3c3299e50fad3dbdb9c45.tar.bz2 evol-tools-b8c8111374536c95c6f3c3299e50fad3dbdb9c45.tar.xz evol-tools-b8c8111374536c95c6f3c3299e50fad3dbdb9c45.zip |
hercules: fix tmx to map_cache.dat converter for special collision types.
Diffstat (limited to 'hercules/code')
-rw-r--r-- | hercules/code/clienttoserver/maps.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hercules/code/clienttoserver/maps.py b/hercules/code/clienttoserver/maps.py index d533335..c64f6af 100644 --- a/hercules/code/clienttoserver/maps.py +++ b/hercules/code/clienttoserver/maps.py @@ -76,10 +76,7 @@ def recreateMapCache(): tileType = 0 else: tileType = tile - firstgid; - if tileType == 0 or tileType == 4: - tiles.append(0) - else: - tiles.append(1) + tiles.append(tileType) elif encoding == "csv": binData = data.childNodes[0].data.strip() f = StringIO.StringIO(binData) |