diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-03 15:34:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-03 15:34:53 -0300 |
commit | 451c43c7e6a8eef27bd84915af8aa01851c147fb (patch) | |
tree | 13259c39724d7809213dd11cd10dc51a4e0b212b | |
parent | 145d3ec5ff4d16c5fde38ee838472bfce2362f98 (diff) | |
download | tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.gz tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.bz2 tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.tar.xz tools-451c43c7e6a8eef27bd84915af8aa01851c147fb.zip |
Add support to ".c" file extension on NPC scripts.
-rwxr-xr-x | hercules/tmx_converter.py | 2 |
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)) |