diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-23 12:10:03 -0300 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-10-15 02:08:44 +0200 |
commit | d1864f8fd24c228c06c6a3706c85535e8dee72cc (patch) | |
tree | 13293ad019e427b044c0a0cc194bda85d8e6f100 /hercules | |
parent | ae411d21b1715a2835f21270e805427633dbe690 (diff) | |
download | tools-d1864f8fd24c228c06c6a3706c85535e8dee72cc.tar.gz tools-d1864f8fd24c228c06c6a3706c85535e8dee72cc.tar.bz2 tools-d1864f8fd24c228c06c6a3706c85535e8dee72cc.tar.xz tools-d1864f8fd24c228c06c6a3706c85535e8dee72cc.zip |
Break CI if map width is too small and cause render bugs.
Diffstat (limited to 'hercules')
-rwxr-xr-x | hercules/tmx_converter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index 96a37d9..ed9d092 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -282,6 +282,7 @@ class ContentHandler(xml.sax.ContentHandler): # Map width must be enough to fill the largest widescreen on market if (self.width < 1920/TILESIZE): print('Bad map width: %d (min. %d)' % (self.width, 1920/TILESIZE)) + raise Exception('Invalid map width: %d (min. %d)' % (self.width, 1920/TILESIZE)) elif self.state is State.LAYER: if name == u'data': if attr.get(u'encoding','') not in (u'', u'csv'): |