summaryrefslogtreecommitdiff
path: root/src/map/vending.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/vending.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/vending.c')
-rw-r--r--src/map/vending.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index 38c817139..0db4ee85b 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -254,14 +254,14 @@ void vending_openvending(struct map_session_data* sd, const char* message, bool
// skill level and cart check
if( !vending_skill_lvl || !pc_iscarton(sd) )
{
- clif_skill_fail(sd, MC_VENDING, 0, 0);
+ clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
return;
}
// check number of items in shop
if( count < 1 || count > MAX_VENDING || count > 2 + vending_skill_lvl )
{ // invalid item count
- clif_skill_fail(sd, MC_VENDING, 0, 0);
+ clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
return;
}
@@ -296,7 +296,7 @@ void vending_openvending(struct map_session_data* sd, const char* message, bool
if( i == 0 )
{ // no valid item found
- clif_skill_fail(sd, MC_VENDING, 0, 0); // custom reply packet
+ clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); // custom reply packet
return;
}
sd->state.prevend = 0;