summaryrefslogtreecommitdiff
path: root/pokemontools/gfx.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2014-07-22 23:44:39 -0500
committerBryan Bishop <kanzure@gmail.com>2014-07-22 23:44:39 -0500
commite0bbcbce7a01fc4e3306174368fc2d1673bac288 (patch)
treee65c11a340a5076081dd484204d825c29cc0ec57 /pokemontools/gfx.py
parent3f27ebff7cc2bdc9165cb5bb01266114766bcb45 (diff)
parentb639b0d3bf333edf416e9b6aa479b703dbd0a100 (diff)
Merge pull request #80 from yenatch/master
loadwilddata takes 3 params, and fix engine flag parsing.
Diffstat (limited to 'pokemontools/gfx.py')
-rw-r--r--pokemontools/gfx.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py
index 2098d59..bfd6745 100644
--- a/pokemontools/gfx.py
+++ b/pokemontools/gfx.py
@@ -1103,10 +1103,6 @@ def read_filename_arguments(filename):
arg = int_args.get(arg, False)
if arg:
parsed_arguments[arg] = int(param)
- elif len(argument) == 3:
- w, x, h = argument[:3]
- if w.isdigit() and h.isdigit() and x == 'x':
- parsed_arguments['pic_dimensions'] = (int(w), int(h))
elif argument == 'interleave':
parsed_arguments['interleave'] = True
elif argument == 'norepeat':
@@ -1114,6 +1110,11 @@ def read_filename_arguments(filename):
elif argument == 'arrange':
parsed_arguments['norepeat'] = True
parsed_arguments['tilemap'] = True
+ elif 'x' in argument:
+ w, h = argument.split('x')
+ if w.isdigit() and h.isdigit():
+ parsed_arguments['pic_dimensions'] = (int(w), int(h))
+
return parsed_arguments