OSDN Git Service

#37287 #37353 (2.2.0.89) 型の置換を継続し、コメントを追加。/ Ongoing type replacement and adding comments.
[hengband/hengband.git] / src / chuukei.c
index 4916603..dcf449d 100644 (file)
@@ -544,7 +544,7 @@ static errr send_text_to_chuukei_server(int x, int y, int len, byte col, cptr st
        }
        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);
@@ -932,7 +932,8 @@ static bool flush_ringbuf_client(void)
        while (get_nextbuf(buf))
        {
                char id;
-               int x, y, len, col;
+               int x, y, len;
+               SYMBOL_COLOR col;
                int i;
                unsigned char tmp1, tmp2, tmp3, tmp4;
                char *mesg;
@@ -952,7 +953,7 @@ static bool flush_ringbuf_client(void)
                switch (id)
                {
                case 't': /* 通常 */
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
                        euc2sjis(mesg);
 #endif
                        update_term_size(x, y, len);