summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-21 17:47:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-23 23:36:18 +0300
commit4e681ce12a3f9574c33dc1e11ca8665e8f04e8a0 (patch)
tree2821d43a8b8017c659376a3542fe281795d6d307 /src/map/battle.c
parent6b949190402e71d5c489f627da79eb5f51669b44 (diff)
downloadhercules-4e681ce12a3f9574c33dc1e11ca8665e8f04e8a0.tar.gz
hercules-4e681ce12a3f9574c33dc1e11ca8665e8f04e8a0.tar.bz2
hercules-4e681ce12a3f9574c33dc1e11ca8665e8f04e8a0.tar.xz
hercules-4e681ce12a3f9574c33dc1e11ca8665e8f04e8a0.zip
Extend official_cell_stack_limit option.
Now if this option is zero server will not count objects before comparing with official_cell_stack_limit. If set official_cell_stack_limit to zero it will heavy reduce CPU usage.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d5f523208..f5357f94a 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6725,7 +6725,7 @@ static const struct battle_data {
{ "bone_drop", &battle_config.bone_drop, 0, 0, 2, },
{ "buyer_name", &battle_config.buyer_name, 1, 0, 1, },
{ "skill_wall_check", &battle_config.skill_wall_check, 1, 0, 1, },
- { "official_cell_stack_limit", &battle_config.official_cell_stack_limit, 1, 1, 255, },
+ { "official_cell_stack_limit", &battle_config.official_cell_stack_limit, 1, 0, 255, },
{ "custom_cell_stack_limit", &battle_config.custom_cell_stack_limit, 1, 1, 255, },
{ "dancing_weaponswitch_fix", &battle_config.dancing_weaponswitch_fix, 1, 0, 1, },