From 1116f3ea796eb5617a570cf03672f6959104a8cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2017 23:16:07 +0300 Subject: tmx_converter: create sorted maps list. --- hercules/tmx_converter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hercules') 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 +## 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': -- cgit v1.2.3-60-g2f50