summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 01:33:50 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-24 01:33:50 +0000
commitd690f8e4b30669b088b99e7b038348dbceb69d5c (patch)
tree2db5c3a039e5c7dc8d5fea94a6dadaae1b1e61c1
parent4c3046421e1f4a022d65350e946ebac52f18fa22 (diff)
downloadhercules-d690f8e4b30669b088b99e7b038348dbceb69d5c.tar.gz
hercules-d690f8e4b30669b088b99e7b038348dbceb69d5c.tar.bz2
hercules-d690f8e4b30669b088b99e7b038348dbceb69d5c.tar.xz
hercules-d690f8e4b30669b088b99e7b038348dbceb69d5c.zip
Fixed bugreport:5808 GN Cart Boost is now removed when user takes off his cart
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16339 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a37c061b2..c4a2c4ef9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7223,6 +7223,9 @@ int pc_setcart(struct map_session_data *sd,int type) {
if( pc_checkskill(sd,MC_PUSHCART) <= 0 )
return 1;// Push cart is required
+ if( type == 0 && pc_iscarton(sd) )
+ status_change_end(&sd->bl,SC_GN_CARTBOOST,INVALID_TIMER);
+
#ifdef NEW_CARTS
switch( type ) {