summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorspira <spira@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-10 21:08:08 +0000
committerspira <spira@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-10 21:08:08 +0000
commit0d6a4ac68463819c38fe879ba1637051ac4c43ca (patch)
treeacea804e06f308c129d6ad95cc7786cc94a6e9e2 /src/map
parentd5c5d135ef7cd391054d58bd6d7d67e35facdec5 (diff)
downloadhercules-0d6a4ac68463819c38fe879ba1637051ac4c43ca.tar.gz
hercules-0d6a4ac68463819c38fe879ba1637051ac4c43ca.tar.bz2
hercules-0d6a4ac68463819c38fe879ba1637051ac4c43ca.tar.xz
hercules-0d6a4ac68463819c38fe879ba1637051ac4c43ca.zip
* Corrected clif_sitting stuff.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@101 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c16
-rw-r--r--src/map/clif.h2
-rw-r--r--src/map/skill.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d78fc5397..de47cb20c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7137,16 +7137,16 @@ void clif_callpartner(struct map_session_data *sd)
* 座る
*------------------------------------------
*/
-void clif_sitting(int fd, struct map_session_data *sd)
+void clif_sitting(struct map_session_data *sd)
{
- nullpo_retv(sd);
+ unsigned char buf[64];
- fd=sd->fd;
+ nullpo_retv(sd);
- WBUFW(fd, 0) = 0x8a;
- WBUFL(fd, 2) = sd->bl.id;
- WBUFB(fd,26) = 2;
- clif_send(WFIFOP(fd,0),packet_db[0x8a].len,&sd->bl,AREA);
+ WBUFW(buf, 0) = 0x8a;
+ WBUFL(buf, 2) = sd->bl.id;
+ WBUFB(buf,26) = 2;
+ clif_send(buf, packet_len_table[0x8a], &sd->bl, AREA);
}
/*==========================================
@@ -7896,7 +7896,7 @@ void clif_parse_ActionRequest(int fd, struct map_session_data *sd, int cmd)
pc_stop_walking(sd,1);
skill_gangsterparadise(sd,1);/* ギャングスターパラダイス設定 */
pc_setsit(sd);
- clif_sitting(fd,sd);
+ clif_sitting(sd);
} else
clif_skill_fail(sd, 1, 0, 2);
break;
diff --git a/src/map/clif.h b/src/map/clif.h
index 5a04d41d6..cf2228e6b 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -98,7 +98,7 @@ int clif_changechatstatus(struct chat_data*); // chat
void clif_emotion(struct block_list *bl,int type);
void clif_talkiebox(struct block_list *bl,char* talkie);
void clif_wedding_effect(struct block_list *bl);
-void clif_sitting(int fd, struct map_session_data *sd);
+void clif_sitting(struct map_session_data *sd);
//void clif_callpartner(struct map_session_data *sd);
//void clif_sitting(struct map_session_data *sd);
void clif_soundeffect(struct map_session_data *sd,struct block_list *bl,char *name,int type);
diff --git a/src/map/skill.c b/src/map/skill.c
index 7d52a689c..15c02e519 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2999,7 +2999,7 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
case LK_TENSIONRELAX: /* テンションリラックス */
clif_skill_nodamage(src,bl,skillid,skilllv,1);
pc_setsit(sd);
- clif_sitting(sd->fd,sd);
+ clif_sitting(sd);
skill_status_change_start(bl,SkillStatusChangeTable[skillid],skilllv,0,0,0,skill_get_time(skillid,skilllv),0 );
break;
case MC_CHANGECART: