summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c4
-rw-r--r--src/map/script.h2
2 files changed, 3 insertions, 3 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);
}
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);