summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-18 05:34:34 -0300
committershennetsind <ind@henn.et>2013-07-18 05:34:34 -0300
commite26c9504e825abe8fe50eca28bf3b89de8e4bd9c (patch)
treecb329c296924f8f8ff47033e90e9b528bb4bd9cf /src/map/script.h
parent586c0f7983f81e97ca70c57712e25d4d51453d6b (diff)
downloadhercules-e26c9504e825abe8fe50eca28bf3b89de8e4bd9c.tar.gz
hercules-e26c9504e825abe8fe50eca28bf3b89de8e4bd9c.tar.bz2
hercules-e26c9504e825abe8fe50eca28bf3b89de8e4bd9c.tar.xz
hercules-e26c9504e825abe8fe50eca28bf3b89de8e4bd9c.zip
Fixed Bug #7525
Item name constants conflicting with script var names will now result in a map server warning/notice and in the background map server will prioritise the script variable over the item name constant. http://hercules.ws/board/tracker/issue-7525-set-variable-is-not-recognized-causing-freezing/ --- Also followup 586c0f7983f81e97ca70c57712e25d4d51453d6b sc_config.txt update Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 25a891897..8e2c4a6f5 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -384,6 +384,7 @@ struct script_interface {
void (*pop_stack) (struct script_state* st, int start, int end);
void (*set_constant) (const char* name, int value, bool isparameter);
void (*set_constant2) (const char *name, int value, bool isparameter);
+ void (*set_constant_force) (const char *name, int value, bool isparameter);
bool (*get_constant) (const char* name, int* value);
void (*label_add)(int key, int pos);
/* */