OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement. (TERM_COLOR)
authordeskull <deskull@users.sourceforge.jp>
Sat, 2 Mar 2019 15:58:03 +0000 (00:58 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 2 Mar 2019 15:58:03 +0000 (00:58 +0900)
src/externs.h
src/files.c
src/variable.c

index d85ccfd..aa4c889 100644 (file)
@@ -324,7 +324,7 @@ extern DUNGEON_IDX max_d_idx;
 extern quest_type *quest;
 extern char quest_text[10][80];
 extern int quest_text_line;
-extern s16b gf_color[MAX_GF];
+extern TERM_COLOR gf_color[MAX_GF];
 extern int init_flags;
 extern int highscore_fd;
 extern bool can_save;
index 5330570..617ac9e 100644 (file)
@@ -623,7 +623,7 @@ errr process_pref_file_command(char *buf)
                                if (streq(gf_desc[i].name, buf + 2))
                                {
                                        /* Remember this color set */
-                                       gf_color[gf_desc[i].num] = quark_add(t);
+                                       gf_color[gf_desc[i].num] = (TERM_COLOR)quark_add(t);
 
                                        /* Success */
                                        return 0;
index 8f90614..74f2cbe 100644 (file)
@@ -758,7 +758,7 @@ int quest_text_line;
 /*
  * Default spell color table (quark index)
  */
-s16b gf_color[MAX_GF];
+TERM_COLOR gf_color[MAX_GF];
 
 /*
  * Flags for initialization