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/mercenary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/mercenary.c') diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 0d5fb328d..05dcfa4c7 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -8,6 +8,7 @@ #include "../common/nullpo.h" #include "../common/mmo.h" #include "../common/showmsg.h" +#include "../common/utils.h" #include "log.h" #include "clif.h" @@ -95,7 +96,7 @@ int merc_hom_vaporize(struct map_session_data *sd, int flag) if (status_isdead(&hd->bl)) return 0; //Can't vaporize a dead homun. - if (flag && percent(hd->battle_status.hp, hd->battle_status.max_hp) < 80) + if (flag && get_percentage(hd->battle_status.hp, hd->battle_status.max_hp) < 80) return 0; hd->regen.state.block = 3; //Block regen while vaporized. -- cgit v1.2.3-60-g2f50