static int sd; /* ソケットのファイルディスクリプタ */
static long time_diff; /* プレイ側との時間のずれ(これを見ながらディレイを調整していく) */
static int server_port;
-static char server_name[MAX_HOSTNAME];
+static GAME_TEXT server_name[MAX_HOSTNAME];
#endif
static int movie_fd;
static errr (*old_curs_hook)(int x, int y);
static errr (*old_bigcurs_hook)(int x, int y);
static errr (*old_wipe_hook)(int x, int y, int n);
-static errr (*old_text_hook)(int x, int y, int n, byte a, cptr s);
+static errr (*old_text_hook)(int x, int y, int n, TERM_COLOR a, cptr s);
static void disable_chuukei_server(void)
{
return (TRUE);
}
-static errr send_text_to_chuukei_server(int x, int y, int len, byte col, cptr str)
+static errr send_text_to_chuukei_server(TERM_LEN x, TERM_LEN y, int len, TERM_COLOR col, cptr str)
{
char buf[1024];
char buf2[1024];
}
else
{
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
sjis2euc(buf2);
#endif
sprintf(buf, "t%c%c%c%c%s", x+1, y+1, len, col, buf2);
if (fd >= 0)
{
char out_val[160];
-
- /* Close the file */
(void)fd_close(fd);
/* Build query */
while (get_nextbuf(buf))
{
char id;
- int x, y, len, col;
+ int x, y, len;
+ TERM_COLOR col;
int i;
unsigned char tmp1, tmp2, tmp3, tmp4;
char *mesg;
switch (id)
{
case 't': /* 通常 */
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
euc2sjis(mesg);
#endif
update_term_size(x, y, len);