summaryrefslogtreecommitdiff
path: root/src/map/config/core.h
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-26 19:19:31 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-26 19:19:31 +0000
commit10fb201916b42c7502e6557a6fb0afb5a6ab059f (patch)
tree774420f3ea39b5ce2f32ace485ebc595ffd98a20 /src/map/config/core.h
parent273c5d25155c1b28cf26274fe32be3ed305bf188 (diff)
downloadhercules-10fb201916b42c7502e6557a6fb0afb5a6ab059f.tar.gz
hercules-10fb201916b42c7502e6557a6fb0afb5a6ab059f.tar.bz2
hercules-10fb201916b42c7502e6557a6fb0afb5a6ab059f.tar.xz
hercules-10fb201916b42c7502e6557a6fb0afb5a6ab059f.zip
- Follow-up to r15979, updated parse_simpleexpr to parse direction function invocation
- Added SCRIPT_CALLFUNC_CHECK macro to disable direct callback if affecting performance git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15981 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config/core.h')
-rw-r--r--src/map/config/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/config/core.h b/src/map/config/core.h
index 4d8e38f95..519df60e7 100644
--- a/src/map/config/core.h
+++ b/src/map/config/core.h
@@ -13,6 +13,13 @@
**/
#define AUTOLOOTITEM_SIZE 10
+/// leave this line uncommented to enable callfunc checks when processing scripts.
+/// while allowed, the script engine will attempt to match user-defined functions
+/// in scripts allowing direct function callback (without the use of callfunc.)
+/// this CAN affect performance, so if you find scripts running slower or find
+/// your map-server using more resources while this is active, comment the line
+#define SCRIPT_CALLFUNC_CHECK
+
//Uncomment to enable the Cell Stack Limit mod.
//It's only config is the battle_config cell_stack_limit.
//Only chars affected are those defined in BL_CHAR (mobs and players currently)