From b6cb7738945e8655a4bd94b5f37615058d068638 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sun, 3 Dec 2006 19:23:27 +0000 Subject: - Fixed even share exp flutuating as described in: http://www.eathena.ws/board/index.php?showtopic=126139 thanks to TheUltraMague for the fix. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9397 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 3 +++ src/map/mob.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index ffe1d4534..e9333b900 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/12/03 + * Fixed even share exp flutuating as described in: + http://www.eathena.ws/board/index.php?showtopic=126139 + thanks to TheUltraMague for the fix. [FlavioJS] * Made ers double frees report as missing entries on destruction. [FlavioJS] * Only one swap function (in cbasetypes.h) is used. [FlavioJS] 2006/12/02 diff --git a/src/map/mob.c b/src/map/mob.c index 92a0396ec..9ef9d75ce 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1823,8 +1823,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) //Exp bonus per additional attacker. if (count > battle_config.exp_bonus_max_attacker) count = battle_config.exp_bonus_max_attacker; - count--; - per += per*(count*battle_config.exp_bonus_attacker)/100.; + per += per*((count-1)*battle_config.exp_bonus_attacker)/100.; } if(md->special_state.size==1) // change experience for different sized monsters [Valaris] -- cgit v1.2.3-60-g2f50