summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 08:52:56 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 08:52:56 +0000
commit3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec (patch)
treeddb5325a893e495843e5187583054d0371d3eb7e /src/map/clif.c
parentf39030a95acfb3e0d7aa11b925ee66f3b1cd458a (diff)
downloadhercules-3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec.tar.gz
hercules-3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec.tar.bz2
hercules-3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec.tar.xz
hercules-3e8e64a63c1eeb9366c8b8889bbce71ddbdfc0ec.zip
* 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
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 4 insertions, 3 deletions
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);