Procházet zdrojové kódy

Added packet 0x43f's length to the packet len table and adjusted related code (followup to r13622).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13640 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage před 16 roky
rodič
revize
500f9893a1
1 změnil soubory, kde provedl 6 přidání a 7 odebrání
  1. 6 7
      src/map/clif.c

+ 6 - 7
src/map/clif.c

@@ -4593,6 +4593,7 @@ int clif_status_change(struct block_list *bl,int type,int flag,unsigned int tick
 		type == SI_READYTURN || type == SI_READYCOUNTER || type == SI_DODGE ||
 		type == SI_DEVIL || type == SI_NIGHT || type == SI_INTRAVISION)
 		tick=0;
+
 	if( battle_config.display_status_timers && tick>0 )
 		WBUFW(buf,0)=0x043f;
 	else
@@ -4600,16 +4601,14 @@ int clif_status_change(struct block_list *bl,int type,int flag,unsigned int tick
 	WBUFW(buf,2)=type;
 	WBUFL(buf,4)=bl->id;
 	WBUFB(buf,8)=flag;
-	if( battle_config.display_status_timers && tick>0 ) {
+	if( battle_config.display_status_timers && tick>0 )
+	{
 		WBUFL(buf,9)=tick;
 		WBUFL(buf,13)=0;
 		WBUFL(buf,17)=0;
 		WBUFL(buf,21)=0;
-		//for some reason, it isn't reading the packet length properly!
-		//clif_send(buf,packet_len(0x43f),bl,AREA);
-		clif_send(buf,25,bl,AREA);
-	} else
-		clif_send(buf,packet_len(0x196),bl,AREA);
+	}
+	clif_send(buf,packet_len(WBUFW(buf,0)),bl,AREA);
 	return 0;
 }
 
@@ -13307,7 +13306,7 @@ static int packetdb_readdb(void)
 	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
 	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
 	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
-	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
+	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 25,
 	//#0x0440
 	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
 	    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,