summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2015-01-24 16:29:46 -0800
committerBen Longbons <b.r.longbons@gmail.com>2015-01-24 16:29:46 -0800
commit7f10e6b42f22728c921ec798f56ae7c2162abe51 (patch)
treef2158dd0fc263d46d54052b3b44471b8ff40bfee
parent6deca6f072938f5ad80205127cd632c075f6b109 (diff)
downloadtools-7f10e6b42f22728c921ec798f56ae7c2162abe51.tar.gz
tools-7f10e6b42f22728c921ec798f56ae7c2162abe51.tar.bz2
tools-7f10e6b42f22728c921ec798f56ae7c2162abe51.tar.xz
tools-7f10e6b42f22728c921ec798f56ae7c2162abe51.zip
Remove legacy support for user-facing pixel coordinates
-rwxr-xr-xtmx_converter.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tmx_converter.py b/tmx_converter.py
index 97a1041..7649555 100755
--- a/tmx_converter.py
+++ b/tmx_converter.py
@@ -91,8 +91,6 @@ class Mob(Object):
class Warp(Object):
__slots__ = (
'dest_map',
- 'dest_x',
- 'dest_y',
'dest_tile_x',
'dest_tile_y',
) + other_warp_fields
@@ -267,16 +265,6 @@ class ContentHandler(xml.sax.ContentHandler):
])
)
elif isinstance(obj, Warp):
- nx = hasattr(obj, 'dest_tile_x')
- ny = hasattr(obj, 'dest_tile_y')
- ox = hasattr(obj, 'dest_x')
- oy = hasattr(obj, 'dest_y')
- assert nx == ny != ox == oy, 'Error: mixed coordinate properties exist.'
-
- if ox:
- obj.dest_tile_x = obj.dest_x / 32;
- obj.dest_tile_y = obj.dest_y / 32;
-
obj_name = obj.name[:23]
if obj.name != obj_name:
print('Warning: warp name truncated: %r -> %r' % (obj.name, obj_name))