diff options
author | Haruna <haru@dotalux.com> | 2014-11-14 21:24:36 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-14 21:24:36 +0100 |
commit | 1ea115f7d795f8f5dea429172d7b4ab8f2b14d18 (patch) | |
tree | 2d2fb2fbcb10398eef1c1ad09b68bf579bccc25b /src/map/script.c | |
parent | 2e6d71cf134c1415a626cb1adddcc30428d467b5 (diff) | |
parent | 194c9106c0b2009ee81574565bea88fd67019659 (diff) | |
download | hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.gz hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.bz2 hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.tar.xz hercules-1ea115f7d795f8f5dea429172d7b4ab8f2b14d18.zip |
Merge pull request #391 from 4144/addscriptdeprecated
Add plugins "function" addScriptCommandDeprecated
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 9ff1b20a7..56bccbdec 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -18985,12 +18985,12 @@ bool script_add_builtin(const struct script_function *buildin, bool override) { return true; } -bool script_hp_add(char *name, char *args, bool (*func)(struct script_state *st)) { +bool script_hp_add(char *name, char *args, bool (*func)(struct script_state *st), bool isDeprecated) { struct script_function buildin; buildin.name = name; buildin.arg = args; buildin.func = func; - buildin.deprecated = false; + buildin.deprecated = isDeprecated; return script->add_builtin(&buildin, true); } |