summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-14 13:33:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-14 13:33:33 +0300
commit8cbdcf9c92c8e9af767afd666733227dd68dddd3 (patch)
tree93ba6556f2449e2219d80ba284d5f66c0e06dac0 /src/map/script.h
parentfe6599de91dbab781e37fbded66cfecb685041cf (diff)
downloadhercules-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.h')
-rw-r--r--src/map/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 1a46ba02b..90804dd5b 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -576,7 +576,7 @@ struct script_interface {
void (*error) (const char* src, const char* file, int start_line, const char* error_msg, const char* error_pos);
void (*warning) (const char* src, const char* file, int start_line, const char* error_msg, const char* error_pos);
/* */
- bool (*addScript) (char *name, char *args, bool (*func)(struct script_state *st));
+ bool (*addScript) (char *name, char *args, bool (*func)(struct script_state *st), bool isDeprecated);
int (*conv_num) (struct script_state *st,struct script_data *data);
const char* (*conv_str) (struct script_state *st,struct script_data *data);
TBL_PC *(*rid2sd) (struct script_state *st);