Prechádzať zdrojové kódy

Fixed bugreport:5808 GN Cart Boost is now removed when user takes off his cart

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16339 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 rokov pred
rodič
commit
b7d3e0665f
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      src/map/pc.c

+ 3 - 0
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 ) {