diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-01 13:56:24 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-01 13:56:24 +0000 |
commit | b1508637e414820d615888a11baed170392154d7 (patch) | |
tree | b7900e1469a6b03f543049af58202d5000cf2165 /src/map/pc.c | |
parent | 5524938f8650e659b3c838df44212de56bf72584 (diff) | |
download | hercules-b1508637e414820d615888a11baed170392154d7.tar.gz hercules-b1508637e414820d615888a11baed170392154d7.tar.bz2 hercules-b1508637e414820d615888a11baed170392154d7.tar.xz hercules-b1508637e414820d615888a11baed170392154d7.zip |
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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |