From 5ae66b037a053fae891c3cbb3819103b4460ca7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Jul 2016 19:08:38 +0300 Subject: hercules: in tmw to map cache script sort maps list before using. --- hercules/code/clienttoserver/maps.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hercules') diff --git a/hercules/code/clienttoserver/maps.py b/hercules/code/clienttoserver/maps.py index e7949fb..055255a 100644 --- a/hercules/code/clienttoserver/maps.py +++ b/hercules/code/clienttoserver/maps.py @@ -14,7 +14,11 @@ from xml.dom import minidom from code.fileutils import * def getTmxFiles(srcDir): + names = [] for name in os.listdir(srcDir): + names.append(name) + names.sort() + for name in names: fileName = srcDir + name if os.path.isfile(fileName) == False: continue -- cgit v1.2.3-70-g09d2