OSDN Git Service

[Fix] #37353 型の修正。 / Fix type.
authorDeskull <deskull@users.sourceforge.jp>
Wed, 13 Feb 2019 04:30:40 +0000 (13:30 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Wed, 13 Feb 2019 12:31:01 +0000 (21:31 +0900)
src/cave.c
src/externs.h
src/init1.c

index 069a3eb..d169599 100644 (file)
@@ -941,7 +941,7 @@ void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], SYMBOL_CODE f_cha
  * "x_ptr->xxx", is quicker than "x_info[x].xxx", if this is incorrect\n
  * then a whole lot of code should be changed...  XXX XXX\n
  */
-void map_info(POSITION y, POSITION x, TERM_COLOR *ap, char *cp, TERM_COLOR *tap, SYMBOL_CODE *tcp)
+void map_info(POSITION y, POSITION x, TERM_COLOR *ap, SYMBOL_CODE *cp, TERM_COLOR *tap, SYMBOL_CODE *tcp)
 {
        /* Get the grid_array */
        grid_type *g_ptr = &grid_array[y][x];
index 1050a7b..1fa1eda 100644 (file)
@@ -464,11 +464,11 @@ extern void get_height_weight(void);
 extern void player_outfit(void);
 extern void dump_yourself(FILE *fff);
 
-/* grid_array.c */
+/* grids.c */
 extern POSITION distance(POSITION y1, POSITION x1, POSITION y2, POSITION x2);
-extern bool is_trap(IDX feat);
+extern bool is_trap(FEAT_IDX feat);
 extern bool is_known_trap(grid_type *g_ptr);
-extern bool is_closed_door(IDX feat);
+extern bool is_closed_door(FEAT_IDX feat);
 extern bool is_hidden_door(grid_type *g_ptr);
 extern bool los(POSITION y1, POSITION x1, POSITION y2, POSITION x2);
 extern void update_local_illumination(POSITION y, POSITION x);
@@ -476,7 +476,7 @@ extern bool player_can_see_bold(POSITION y, POSITION x);
 extern bool cave_valid_bold(POSITION y, POSITION x);
 extern bool no_lite(void);
 extern void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], SYMBOL_CODE f_char[F_LIT_MAX]);
-extern void map_info(POSITION y, POSITION x, TERM_COLOR *ap, char *cp, TERM_COLOR *tap, char *tcp);
+extern void map_info(POSITION y, POSITION x, TERM_COLOR *ap, SYMBOL_CODE *cp, TERM_COLOR *tap, SYMBOL_CODE *tcp);
 extern void move_cursor_relative(int row, int col);
 extern void print_rel(SYMBOL_CODE c, TERM_COLOR a, TERM_LEN y, TERM_LEN x);
 extern void note_spot(POSITION y, POSITION x);
@@ -501,7 +501,7 @@ extern void wiz_lite(bool ninja);
 extern void wiz_dark(void);
 extern void cave_set_feat(POSITION y, POSITION x, FEAT_IDX feat);
 extern FEAT_IDX conv_dungeon_feat(FEAT_IDX newfeat);
-extern FEAT_IDX feat_state(IDX feat, int action);
+extern FEAT_IDX feat_state(FEAT_IDX feat, int action);
 extern void cave_alter_feat(POSITION y, POSITION x, int action);
 extern void remove_mirror(POSITION y, POSITION x);
 extern bool is_mirror_grid(grid_type *g_ptr);
@@ -675,7 +675,7 @@ extern bool build_tunnel2(POSITION x1, POSITION y1, POSITION x2, POSITION y2, in
 
 
 /* init1.c */
-extern byte color_char_to_attr(char c);
+extern TERM_COLOR color_char_to_attr(SYMBOL_CODE c);
 extern s16b f_tag_to_index(concptr str);
 extern errr process_dungeon_file(concptr name, int ymin, int xmin, int ymax, int xmax);
 
index ad72e0d..b46e2b4 100644 (file)
@@ -1140,7 +1140,7 @@ static bool add_tag(STR_OFFSET *offset, header *head, concptr buf)
  * @param c シンボル文字
  * @return カラーID
  */
-byte color_char_to_attr(char c)
+TERM_COLOR color_char_to_attr(SYMBOL_CODE c)
 {
        switch (c)
        {