diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-30 23:16:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-30 23:16:07 +0300 |
commit | 1116f3ea796eb5617a570cf03672f6959104a8cb (patch) | |
tree | 04e5962e6bf457a03b08879dbf4cfe05bfe9fa28 /hercules | |
parent | 509d8966650213dd680969e00e1bae22e7400d02 (diff) | |
download | evol-tools-1116f3ea796eb5617a570cf03672f6959104a8cb.tar.gz evol-tools-1116f3ea796eb5617a570cf03672f6959104a8cb.tar.bz2 evol-tools-1116f3ea796eb5617a570cf03672f6959104a8cb.tar.xz evol-tools-1116f3ea796eb5617a570cf03672f6959104a8cb.zip |
tmx_converter: create sorted maps list.
Diffstat (limited to 'hercules')
-rwxr-xr-x | hercules/tmx_converter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index 5c60221..4d1d833 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -4,6 +4,7 @@ ## tmx_converter.py - Extract walkmap, warp, and spawn information from maps. ## ## Copyright © 2012 Ben Longbons <b.r.longbons@gmail.com> +## Copyright © 2016-2017 The Mana World Developers ## ## This file is part of The Mana World ## @@ -381,7 +382,7 @@ def main(argv): map_db = open(posixpath.join(server_data,MAP_DB_CONF), 'w') map_conf.write("map_removed: (\n)\nmap_list: (\n") map_count = 1 - for arg in os.listdir(tmx_dir): + for arg in sorted(os.listdir(tmx_dir)): base, ext = posixpath.splitext(arg) if ext == '.tmx': |