diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-07 06:07:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-07 06:07:48 +0300 |
commit | 79f5e002a1fdea61a3b79dae0bb2bf04235556c4 (patch) | |
tree | 2c0b9dbe537a891f767f6b12344a3d49b6f02089 /hercules | |
parent | 391d4724ed1c5946ded89a7731b303eae6c9457d (diff) | |
download | evol-tools-79f5e002a1fdea61a3b79dae0bb2bf04235556c4.tar.gz evol-tools-79f5e002a1fdea61a3b79dae0bb2bf04235556c4.tar.bz2 evol-tools-79f5e002a1fdea61a3b79dae0bb2bf04235556c4.tar.xz evol-tools-79f5e002a1fdea61a3b79dae0bb2bf04235556c4.zip |
tmx_converter: remove tmwa workroaund for warp offsets.
Because tmwa all warps with big height was wrong.
Diffstat (limited to 'hercules')
-rwxr-xr-x | hercules/tmx_converter.py | 3 |
1 files changed, 1 insertions, 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), ]) |