summaryrefslogtreecommitdiff
path: root/src/char/inter.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 01:51:17 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 01:51:17 +0000
commit726dfead1497c0c01c9725ab0a83d1b339226498 (patch)
tree77b7a10baf9406503ab75eb2acfc9f1e12133fee /src/char/inter.c
parent12a4dd862878f261de8863b81b1c5aecf4729d21 (diff)
downloadhercules-726dfead1497c0c01c9725ab0a83d1b339226498.tar.gz
hercules-726dfead1497c0c01c9725ab0a83d1b339226498.tar.bz2
hercules-726dfead1497c0c01c9725ab0a83d1b339226498.tar.xz
hercules-726dfead1497c0c01c9725ab0a83d1b339226498.zip
Rewrite inter server messaging
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@740 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/inter.c')
-rw-r--r--src/char/inter.c6
1 files changed, 3 insertions, 3 deletions
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;
}