From d1864f8fd24c228c06c6a3706c85535e8dee72cc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Apr 2020 12:10:03 -0300 Subject: Break CI if map width is too small and cause render bugs. --- hercules/tmx_converter.py | 1 + 1 file changed, 1 insertion(+) (limited to 'hercules') 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'): -- cgit v1.2.3-70-g09d2