summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-03 15:34:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-03 15:34:53 -0300
commit451c43c7e6a8eef27bd84915af8aa01851c147fb (patch)
tree13259c39724d7809213dd11cd10dc51a4e0b212b /hercules
parent145d3ec5ff4d16c5fde38ee838472bfce2362f98 (diff)
downloadtools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.gz
tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.bz2
tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.xz
tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.zip
Add support to ".c" file extension on NPC scripts.
Diffstat (limited to 'hercules')
-rwxr-xr-xhercules/tmx_converter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py
index feaf103..6469aa9 100755
--- a/hercules/tmx_converter.py
+++ b/hercules/tmx_converter.py
@@ -410,7 +410,7 @@ class ContentHandler(xml.sax.ContentHandler):
continue
if x.startswith('.'):
continue
- if x.endswith('.txt'):
+ if x.endswith('.txt') or x.endswith('.c'):
self.imports.write('"%s",\n' % posixpath.join(SERVER_NPCS, self.base, x))
else:
os.remove(posixpath.join(main.this_map_npc_dir, NPC_IMPORTS))