From 451c43c7e6a8eef27bd84915af8aa01851c147fb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 3 Jun 2020 15:34:53 -0300 Subject: Add support to ".c" file extension on NPC scripts. --- hercules/tmx_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hercules') 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)) -- cgit v1.2.3-70-g09d2