summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-09-24 03:22:01 -0300
committerJesusaves <cpntb1@ymail.com>2021-09-24 03:22:01 -0300
commit975d46e7e1174e931eb25800980702b2a7639d05 (patch)
tree74c67d7c415fdf53bdf1ecea70ba3b8e43f67021
parentb3c2ce3029285069a95eb229fcbca99a03ec3978 (diff)
downloadtools-975d46e7e1174e931eb25800980702b2a7639d05.tar.gz
tools-975d46e7e1174e931eb25800980702b2a7639d05.tar.bz2
tools-975d46e7e1174e931eb25800980702b2a7639d05.tar.xz
tools-975d46e7e1174e931eb25800980702b2a7639d05.zip
Domain 030 is special - DO NOT generate minimaps for it
-rwxr-xr-xclient/minimap-render.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/minimap-render.py b/client/minimap-render.py
index 716e9e3..a23ff62 100755
--- a/client/minimap-render.py
+++ b/client/minimap-render.py
@@ -13,6 +13,8 @@ CLIENT_DATA_ROOT = os.path.realpath(
)
)
+SKIP_DOMAIN="030-"
+
class MinimapRenderer(object):
PROGRAMS = {
@@ -40,6 +42,9 @@ class MinimapRenderer(object):
return 1
if not self.map_name.endswith(u'.tmx'):
self.map_name = self.map_name+u'.tmx'
+ if SKIP_DOMAIN in self.map_name:
+ print(u'Skipping %s (regex)...\n' % self.map_name)
+ return 0
map_number = os.path.splitext(os.path.basename(self.map_name))[0]
tmx_file = os.path.join(CLIENT_DATA_ROOT, u'maps', self.map_name)