From 5cbc604ac21f8604a69141012cd980410943b7da Mon Sep 17 00:00:00 2001 From: protimus Date: Tue, 20 Dec 2011 07:28:40 +0000 Subject: * Removed function that cause duplicate allocation status of hit and flee. - This is a temporary fix, is need get informations about the use of alone bonifications. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15179 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/map/status.c b/src/map/status.c index cb442f4fb..8d1b959c6 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1976,19 +1976,6 @@ static unsigned int status_base_pc_maxsp(struct map_session_data* sd, struct sta return val; } -#if REMODE -/** - * Renewal Absolute Bonus to be applied after all bonuses were applied (so % bonuses on say, skills, don't affect them) - **/ -void status_renewal_postcalc(struct status_data* status, int flag) { - if( flag&SCB_FLEE ) - status->flee += 100; - if( flag&SCB_HIT ) - status->hit += 175; - return; -} -#endif - //Calculates player data from scratch without counting SC adjustments. //Should be invoked whenever players raise stats, learn passive skills or change equipment. int status_calc_pc_(struct map_session_data* sd, bool first) @@ -3439,9 +3426,7 @@ void status_calc_bl_main(struct block_list *bl, /*enum scb_flag*/int flag) status->dmotion = status_calc_dmotion(bl, sc, b_status->dmotion); } } -#if REMODE - status_renewal_postcalc(status,flag); -#endif + if(flag&(SCB_VIT|SCB_MAXHP|SCB_INT|SCB_MAXSP) && bl->type&BL_REGEN) status_calc_regen(bl, status, status_get_regen_data(bl)); -- cgit v1.2.3-70-g09d2