소스 검색

Hello and welcome to BUG TRACKER NIGHT!
The first dish of the night, bugreport:6018 has been fixed. new carts are now removed properly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16330 54d463be-8e91-2dee-dedb-b68131a5f0ec

shennetsind 13 년 전
부모
커밋
a1080d66ea
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 2
      src/map/pc.c
  2. 2 1
      src/map/status.c

+ 1 - 2
src/map/pc.c

@@ -7237,11 +7237,10 @@ int pc_setcart(struct map_session_data *sd,int type) {
 				clif_cartlist(sd);
 			clif_updatestatus(sd, SP_CARTINFO);
 			sc_start(&sd->bl, SC_PUSH_CART, 100, type, 0);
+			clif_status_load_notick(&sd->bl, SI_ON_PUSH_CART,   2 , type, 0, 0);
 			break;
 	}
 	
-	clif_status_load_notick(&sd->bl, SI_ON_PUSH_CART,  type != 0 ? 2 : 0, type, 0, 0);
-	
 	if(pc_checkskill(sd, MC_PUSHCART) < 10)
 		status_calc_pc(sd,0); //Recalc speed penalty.
 #else

+ 2 - 1
src/map/status.c

@@ -854,7 +854,8 @@ void initChangeTables(void) {
 	StatusIconChangeTable[SC_PETROLOGY] = SI_PETROLOGY;
 	StatusIconChangeTable[SC_CURSED_SOIL] = SI_CURSED_SOIL;
 	StatusIconChangeTable[SC_UPHEAVAL] = SI_UPHEAVAL;
-
+	StatusIconChangeTable[SC_PUSH_CART] = SI_ON_PUSH_CART;
+	
 	//Other SC which are not necessarily associated to skills.
 	StatusChangeFlagTable[SC_ASPDPOTION0] = SCB_ASPD;
 	StatusChangeFlagTable[SC_ASPDPOTION1] = SCB_ASPD;