diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-14 13:33:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-14 13:33:33 +0300 |
commit | 8cbdcf9c92c8e9af767afd666733227dd68dddd3 (patch) | |
tree | 93ba6556f2449e2219d80ba284d5f66c0e06dac0 /src/map/script.c | |
parent | fe6599de91dbab781e37fbded66cfecb685041cf (diff) | |
download | hercules-8cbdcf9c92c8e9af767afd666733227dd68dddd3.tar.gz hercules-8cbdcf9c92c8e9af767afd666733227dd68dddd3.tar.bz2 hercules-8cbdcf9c92c8e9af767afd666733227dd68dddd3.tar.xz hercules-8cbdcf9c92c8e9af767afd666733227dd68dddd3.zip |
Add ability to add deprecated command from scripts and plugins.
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); } |