summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))