diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-11 10:34:34 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-11 10:34:34 +0000 |
commit | 8caedfe81e0f03423fe46f05274b3590e2bb9416 (patch) | |
tree | 7f928a9a9c90b9efc043f3ec1d5553609dbedb17 | |
parent | baf1afec7f2dfc91110fb7fd00d8bed0058a8d6b (diff) | |
download | hercules-8caedfe81e0f03423fe46f05274b3590e2bb9416.tar.gz hercules-8caedfe81e0f03423fe46f05274b3590e2bb9416.tar.bz2 hercules-8caedfe81e0f03423fe46f05274b3590e2bb9416.tar.xz hercules-8caedfe81e0f03423fe46f05274b3590e2bb9416.zip |
minor performance improvement for users with battle_config.ksprotection disabled.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15855 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 53d5e6ac8..d1e47033f 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -333,7 +333,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag if( !damage ) return 0; - if( mob_ksprotected(src, bl) ) + if( battle_config.ksprotection && mob_ksprotected(src, bl) ) return 0; if (bl->type == BL_PC) { |