summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-07 22:58:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-10 23:06:09 +0300
commit6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe (patch)
tree0c83fad347aabdc8f122a1097f1cb25bd8a937ab /src/map/script.c
parent7614415c83f2a091302f62806e16adca1feea6bf (diff)
downloadhercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.gz
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.bz2
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.xz
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.zip
Add script interface function run_npc. It do same thing as run.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 1cad581b3..ca776ead0 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -4035,7 +4035,7 @@ int run_func(struct script_state *st)
/*==========================================
* script execution
*------------------------------------------*/
-void run_script(struct script_code *rootscript,int pos,int rid,int oid) {
+void run_script(struct script_code *rootscript, int pos, int rid, int oid) {
struct script_state *st;
if( rootscript == NULL || pos < 0 )
@@ -20661,6 +20661,7 @@ void script_defaults(void) {
script->get_constant = script_get_constant;
script->label_add = script_label_add;
script->run = run_script;
+ script->run_npc = run_script;
script->run_main = run_script_main;
script->run_timer = run_script_timer;
script->set_var = set_var;