OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Mon, 28 Jan 2019 14:21:12 +0000 (23:21 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Mon, 28 Jan 2019 14:21:12 +0000 (23:21 +0900)
src/cave.c
src/cmd4.c

index ac45501..f0a6800 100644 (file)
@@ -955,7 +955,7 @@ void map_info(POSITION y, POSITION x, TERM_COLOR *ap, char *cp, TERM_COLOR *tap,
        feature_type *f_ptr = &f_info[feat];
 
        TERM_COLOR a;
-       byte c;
+       SYMBOL_CODE c;
 
        /* Boring grids (floors, etc) */
        if (!have_flag(f_ptr->flags, FF_REMEMBER))
index e0f5397..e19262f 100644 (file)
@@ -6213,8 +6213,8 @@ static void display_visual_list(int col, int row, int height, int width, TERM_CO
                /* Display columns until done */
                for (j = 0; j < width; j++)
                {
-                       byte a;
-                       char c;
+                       TERM_COLOR a;
+                       SYMBOL_CODE c;
                        TERM_LEN x = col + j;
                        TERM_LEN y = row + i;
                        int ia, ic;
@@ -6230,8 +6230,8 @@ static void display_visual_list(int col, int row, int height, int width, TERM_CO
                            (!use_graphics && ic > 0x7f))
                                continue;
 
-                       a = (byte)ia;
-                       c = (char)ic;
+                       a = ia;
+                       c = ic;
 
                        /* Force correct code for both ASCII character and tile */
                        if (c & 0x80) a |= 0x80;