summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-02 09:39:35 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-02 09:39:35 +0000
commit357627760a5810bf33e162431fd98c3f6ee84cfc (patch)
treec8ed4859fe4869caba2790734960e6e99611ea99 /src/map/clif.c
parent8624af1916d4926e421ba4a5a9b261420fcaf189 (diff)
downloadhercules-357627760a5810bf33e162431fd98c3f6ee84cfc.tar.gz
hercules-357627760a5810bf33e162431fd98c3f6ee84cfc.tar.bz2
hercules-357627760a5810bf33e162431fd98c3f6ee84cfc.tar.xz
hercules-357627760a5810bf33e162431fd98c3f6ee84cfc.zip
Fixed charserver unable to reestablish link to login server after a disconnect (yet another problem caused by r11826).
Copied code from TXT to SQL to perform a graceful shutdown of all login server sockets while exiting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11848 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9835f12ec..bdb989d3f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -946,7 +946,6 @@ static int clif_set_unit_spawned(struct block_list* bl, unsigned char* buf)
}
else
{ // npc/mob/pet/homun spawn packet
- memset(buf,0,sizeof(buf));
WBUFW(buf, 0) = 0x7c;
WBUFL(buf, 2) = bl->id;
WBUFW(buf, 6) = status_get_speed(bl);
@@ -954,20 +953,20 @@ static int clif_set_unit_spawned(struct block_list* bl, unsigned char* buf)
WBUFW(buf,10) = (sc)? sc->opt2 : 0;
WBUFW(buf,12) = (sc)? sc->option : 0;
WBUFW(buf,14) = vd->hair_style; //Required for pets (removes attack cursor)
- //16W: Weapon
+ WBUFW(buf,16) = 0; // Weapon
WBUFW(buf,18) = vd->head_bottom; //Pet armor (ignored by client)
WBUFW(buf,20) = vd->class_;
- //22W: Shield
- //24W: Head top
- //26W: Head mid
- //28W: Hair color
- //30W: Cloth color
- //32W: Head dir
- //34B: karma
- //35B: Sex
+ WBUFW(buf,22) = 0; // Shield
+ WBUFW(buf,24) = 0; // Head top
+ WBUFW(buf,26) = 0; // Head mid
+ WBUFW(buf,28) = 0; // Hair color
+ WBUFW(buf,30) = 0; // Cloth color
+ WBUFW(buf,32) = 0; // Head dir
+ WBUFB(buf,34) = 0; // karma
+ WBUFB(buf,35) = 0; // Sex
WBUFPOS(buf,36,bl->x,bl->y,unit_getdir(bl));
- //39B: ???
- //40B: ???
+ WBUFB(buf,39) = 0; // ???
+ WBUFB(buf,40) = 0; // ???
#if PACKETVER < 9
return packet_len(0x7c);