diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-30 08:55:12 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-30 08:55:12 +0000 |
commit | 2eb1feda73d19275c2fb24611769c6fc4c5d5233 (patch) | |
tree | a9aad9bba9f0a9b39f85782c278ca037ca1aab57 /src | |
parent | 7216abc02cbbc6c4112e662e0d8805011339dff6 (diff) | |
download | hercules-2eb1feda73d19275c2fb24611769c6fc4c5d5233.tar.gz hercules-2eb1feda73d19275c2fb24611769c6fc4c5d5233.tar.bz2 hercules-2eb1feda73d19275c2fb24611769c6fc4c5d5233.tar.xz hercules-2eb1feda73d19275c2fb24611769c6fc4c5d5233.zip |
Added packet 0x43f's length to the packet len table and adjusted related code (followup to r13622).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13640 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 600c8e2d3..2da84de34 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, |