From 79f5e002a1fdea61a3b79dae0bb2bf04235556c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 7 Sep 2018 06:07:48 +0300 Subject: tmx_converter: remove tmwa workroaund for warp offsets. Because tmwa all warps with big height was wrong. --- hercules/tmx_converter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index 26fb44c..f9db092 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -367,10 +367,9 @@ class ContentHandler(xml.sax.ContentHandler): elif isinstance(obj, Warp): if (obj.npc_id == u'WARP'): obj_name = "#%s_%s_%s" % (self.base, obj.x, obj.y) - y_offset = int(self.heightmap[((obj.y * self.width) + obj.x)])/2 self.warps.write( SEPARATOR.join([ - '%s,%d,%d,0\t' % (self.base, obj.x, (obj.y + y_offset)), + '%s,%d,%d,0\t' % (self.base, obj.x, obj.y), 'warp\t', '%s\t%s,%s,%s,%d,%d\n' % (obj_name, obj.w, obj.h, obj.dest_map, obj.dest_x, obj.dest_y), ]) -- cgit v1.2.3-70-g09d2