summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_guild.c6
-rw-r--r--src/char/int_party.c6
-rw-r--r--src/char/inter.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 5a6775cff..3229453f8 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -786,7 +786,7 @@ int mapif_guild_broken(int guild_id, int flag) {
}
// ギルド内発言
-int mapif_guild_message(int guild_id, int account_id, char *mes, int len) {
+int mapif_guild_message(int guild_id, int account_id, char *mes, int len, int sfd) {
unsigned char buf[len+12];
WBUFW(buf,0) = 0x3837;
@@ -794,7 +794,7 @@ int mapif_guild_message(int guild_id, int account_id, char *mes, int len) {
WBUFL(buf,4) = guild_id;
WBUFL(buf,8) = account_id;
memcpy(WBUFP(buf,12), mes, len);
- mapif_sendall(buf, len + 12);
+ mapif_sendallwos(sfd, buf, len + 12);
return 0;
}
@@ -1152,7 +1152,7 @@ int mapif_parse_BreakGuild(int fd, int guild_id) {
// ギルドメッセージ送信
int mapif_parse_GuildMessage(int fd, int guild_id, int account_id, char *mes, int len) {
- return mapif_guild_message(guild_id, account_id, mes, len);
+ return mapif_guild_message(guild_id, account_id, mes, len, fd);
}
// ギルド基本データ変更要求
diff --git a/src/char/int_party.c b/src/char/int_party.c
index 0fd58fa14..194e96707 100644
--- a/src/char/int_party.c
+++ b/src/char/int_party.c
@@ -356,7 +356,7 @@ int mapif_party_broken(int party_id, int flag) {
}
// パーティ内発言
-int mapif_party_message(int party_id, int account_id, char *mes, int len) {
+int mapif_party_message(int party_id, int account_id, char *mes, int len, int sfd) {
unsigned char buf[len+12];
WBUFW(buf,0) = 0x3827;
@@ -364,7 +364,7 @@ int mapif_party_message(int party_id, int account_id, char *mes, int len) {
WBUFL(buf,4) = party_id;
WBUFL(buf,8) = account_id;
memcpy(WBUFP(buf,12), mes, len);
- mapif_sendall(buf,len + 12);
+ mapif_sendallwos(sfd, buf,len + 12);
return 0;
}
@@ -558,7 +558,7 @@ int mapif_parse_BreakParty(int fd, int party_id) {
// パーティメッセージ送信
int mapif_parse_PartyMessage(int fd, int party_id, int account_id, char *mes, int len) {
- return mapif_party_message(party_id, account_id, mes, len);
+ return mapif_party_message(party_id, account_id, mes, len, fd);
}
// パーティチェック要求
int mapif_parse_PartyCheck(int fd, int party_id, int account_id, char *nick) {
diff --git a/src/char/inter.c b/src/char/inter.c
index bf7bdcccf..a6e2a4199 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -272,13 +272,13 @@ int inter_mapif_init(int fd) {
// sended packets to map-server
// GMメッセージ送信
-int mapif_GMmessage(unsigned char *mes, int len) {
+int mapif_GMmessage(unsigned char *mes, int len, int sfd) {
unsigned char buf[len];
WBUFW(buf,0) = 0x3800;
WBUFW(buf,2) = len;
memcpy(WBUFP(buf,4), mes, len - 4);
- mapif_sendall(buf, len);
+ mapif_sendallwos(sfd, buf, len);
// printf("inter server: GM:%d %s\n", len, mes);
return 0;
@@ -383,7 +383,7 @@ int check_ttl_wisdata() {
// GMメッセージ送信
int mapif_parse_GMmessage(int fd) {
- mapif_GMmessage(RFIFOP(fd,4), RFIFOW(fd,2));
+ mapif_GMmessage(RFIFOP(fd,4), RFIFOW(fd,2), fd);
return 0;
}