From 3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 22 May 2006 08:52:56 +0000 Subject: * Fixed compilation errors. * Tidy up jobmaster for easy debugging. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6686 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index f8d07aa41..6f23e1c7f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1371,11 +1371,11 @@ int clif_spawn(struct block_list *bl) int clif_homunack(struct map_session_data *sd) { struct homun_data *hd = sd->hd; + unsigned char buf[64]; nullpo_retr(0, sd); nullpo_retr(0, sd->hd); - unsigned char buf[64]; //memset(buf,0,packet_len_table[0x230]); memset(buf,0,12); //not yet set that stuff WBUFW(buf,0)=0x230; @@ -1390,11 +1390,11 @@ int clif_homunack(struct map_session_data *sd) int clif_homuninfo(struct map_session_data *sd) { struct homun_data *hd = sd->hd; + unsigned char buf[128]; nullpo_retr(0, sd); nullpo_retr(0, sd->hd); - unsigned char buf[128]; memset(buf,0,71); //packet_len_table[0x22e]); WBUFW(buf,0)=0x22e; memcpy(WBUFP(buf,2),hd->name,NAME_LENGTH); @@ -1418,13 +1418,14 @@ int clif_homuninfo(struct map_session_data *sd) WBUFW(buf,67)=hd->skillpts; WBUFW(buf,69)=0x21; clif_send(buf,/*packet_len_table[0x22e]*/71,&sd->bl,SELF); + return 0; } // like skillinfoblock, just for homunculi. int clif_homunskillinfoblock(struct map_session_data *sd) { int fd; - int i,c,len=4,id, inf2; + int i,c,len=4,id/*, inf2*/; nullpo_retr(0, sd); nullpo_retr(0, sd->hd); -- cgit v1.2.3-70-g09d2