diff options
Diffstat (limited to 'hercules')
-rwxr-xr-x | hercules/tmx_converter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index f2b40c0..86e75bb 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -210,6 +210,9 @@ class ContentHandler(xml.sax.ContentHandler): self.height = int(attr[u'height']) self.state = State.LAYER heigherror=False + # 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)) elif self.state is State.LAYER: if name == u'data': if attr.get(u'encoding','') not in (u'', u'csv'): |