From 500f9893a12ac0e7e68c2d3fda9ef5dc316e43e9 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 30 Mar 2009 08:55:12 +0000 Subject: [PATCH] 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 --- src/map/clif.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/map/clif.c b/src/map/clif.c index 600c8e2d35..2da84de343 100644 --- a/src/map/clif.c +++ b/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,