summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-05-13 15:41:18 -0400
committerJared Adams <jaxad0127@gmail.com>2009-05-13 17:57:15 -0600
commit94a8a08118ecd9e358d794d430945ada248d0959 (patch)
tree4ef4f5c15758229585f6003e20b0123c4e7fb883 /src/map/clif.c
parentabb8b0a2cd5577cce954f638dca5fa3f371391fb (diff)
downloadtmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.gz
tmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.bz2
tmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.xz
tmwa-94a8a08118ecd9e358d794d430945ada248d0959.zip
Fixed all compiler warnings and several small bugs in the process
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index aa0fff9..e5fa002 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -676,6 +676,7 @@ int clif_clearchar_id(int id, int type, int fd) {
return 0;
}
+/*
static int current_weapon(struct map_session_data *sd)
{
if (sd->attack_spell_override)
@@ -684,6 +685,7 @@ static int current_weapon(struct map_session_data *sd)
return sd->status.weapon;
}
}
+*/
/*==========================================
*
@@ -3048,7 +3050,7 @@ int clif_updatestorageamount(struct map_session_data *sd,struct storage *stor)
*/
int clif_storageitemadded(struct map_session_data *sd,struct storage *stor,int index,int amount)
{
- int view,fd,j;
+ int fd,j;
nullpo_retr(0, sd);
nullpo_retr(0, stor);
@@ -3256,8 +3258,8 @@ void clif_getareachar_pc(struct map_session_data* sd,struct map_session_data* ds
if(sd->status.manner < 0)
clif_changestatus(&sd->bl,SP_MANNER,sd->status.manner);
- clif_changelook_accessories(sd, dstsd);
- clif_changelook_accessories(dstsd, sd);
+ clif_changelook_accessories(&sd->bl, dstsd);
+ clif_changelook_accessories(&dstsd->bl, sd);
}
/*==========================================
@@ -3343,7 +3345,7 @@ int clif_fixpcpos(struct map_session_data *sd)
len = clif_set0078(sd,buf);
clif_send(buf,len,&sd->bl,AREA);
}
- clif_changelook_accessories(sd, NULL);
+ clif_changelook_accessories(&sd->bl, NULL);
return 0;
}
@@ -6413,9 +6415,7 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) {
WFIFOSET(fd,packet_len_table[0x95]);
if (ssd->special_state.heal_effect)
{
- unsigned char buf[16];
-
- nullpo_retr(0, bl);
+ nullpo_retv(bl);
WFIFOW(fd,0)=0x0196;
WFIFOW(fd,2)=SC_HEALING;
@@ -6584,7 +6584,7 @@ void clif_parse_ChangeDir(int fd, struct map_session_data *sd) {
nullpo_retv(sd);
- RFIFOW(fd,2); //skip
+// RFIFOW(fd,2); // Apparently does nothing?
dir = RFIFOB(fd,4);
pc_setdir(sd, dir);