summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-31 23:32:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:32:06 +0300
commit359730d16f0444da91d678302260a903b18be607 (patch)
treecc123ee2a086d604b58be92ef8d23c5bf0bc2aaf /src/map/init.c
parent7942a5a3d653589631850b6560e04503bf304175 (diff)
downloadevol-hercules-359730d16f0444da91d678302260a903b18be607.tar.gz
evol-hercules-359730d16f0444da91d678302260a903b18be607.tar.bz2
evol-hercules-359730d16f0444da91d678302260a903b18be607.tar.xz
evol-hercules-359730d16f0444da91d678302260a903b18be607.zip
add script function what return current map name.
New script function: getmapname
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 94e57b0..8a09c3d 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -92,6 +92,8 @@ HPExport void plugin_init (void)
addScriptCommand("clear", "", clear);
addScriptCommand("changemusic", "ss", changeMusic);
addScriptCommand("setnpcdialogtitle", "s", setNpcDialogTitle);
+ addScriptCommand("getmapname", "", getMapName);
+
do_init_langs();