From 7f10e6b42f22728c921ec798f56ae7c2162abe51 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 24 Jan 2015 16:29:46 -0800 Subject: Remove legacy support for user-facing pixel coordinates --- tmx_converter.py | 12 ------------ 1 file changed, 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)) -- cgit v1.2.3-60-g2f50