From b1508637e414820d615888a11baed170392154d7 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 1 May 2008 13:56:24 +0000 Subject: Replaced the integers+checking approach in r12679 with usage of floating point arithmetic. Applied search&replace to use the new name of the function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12680 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index a5cea128d..04b1ea0ef 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5084,7 +5084,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) { unsigned int next = pc_nextbaseexp(sd); if( next == 0 ) next = pc_thisbaseexp(sd); - if( percent(sd->status.base_exp,next) >= 99 && !map_flag_gvg(sd->bl.m) ) + if( get_percentage(sd->status.base_exp,next) >= 99 && !map_flag_gvg(sd->bl.m) ) sd->state.snovice_dead_flag = 1; } -- cgit v1.2.3-60-g2f50