summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authoreathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-17 05:33:14 +0000
committereathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-17 05:33:14 +0000
commite2a611d1ce53ccea06168d5d63707aff09bd0555 (patch)
tree31ec3e61639ad2ea0c1d73dcf1178716f657b8c4 /src/map/pc.c
parentf5ded9b1d612e0b21ca993303289cffa8aae9180 (diff)
downloadhercules-e2a611d1ce53ccea06168d5d63707aff09bd0555.tar.gz
hercules-e2a611d1ce53ccea06168d5d63707aff09bd0555.tar.bz2
hercules-e2a611d1ce53ccea06168d5d63707aff09bd0555.tar.xz
hercules-e2a611d1ce53ccea06168d5d63707aff09bd0555.zip
* Merged changes up to eAthena 15054. [ai4rei]
* clif cleanup: Changed argument types of some clif functions. - Added enumeration for skill failure codes and made clif_skill_fail use it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15472 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6f10e88a7..9978f711c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3957,16 +3957,16 @@ int pc_useitem(struct map_session_data *sd,int n)
script = sd->inventory_data[n]->script;
//Check if the item is to be consumed immediately [Skotlex]
if( sd->inventory_data[n]->flag.delay_consume )
- clif_useitemack(sd,n,amount,1);
+ clif_useitemack(sd,n,amount,true);
else
{
if( sd->status.inventory[n].expire_time == 0 )
{
- clif_useitemack(sd,n,amount-1,1);
+ clif_useitemack(sd,n,amount-1,true);
pc_delitem(sd,n,1,1,0,LOG_TYPE_CONSUME); // Rental Usable Items are not deleted until expiration
}
else
- clif_useitemack(sd,n,0,0);
+ clif_useitemack(sd,n,0,false);
}
if(sd->status.inventory[n].card[0]==CARD0_CREATE &&
pc_famerank(MakeDWord(sd->status.inventory[n].card[2],sd->status.inventory[n].card[3]), MAPID_ALCHEMIST))