OSDN Git Service

[Refactor] #37287 #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 7 Oct 2018 13:23:50 +0000 (22:23 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 7 Oct 2018 13:23:50 +0000 (22:23 +0900)
src/cave.c
src/externs.h

index e3c864a..8acd71b 100644 (file)
@@ -1465,12 +1465,10 @@ void print_rel(char c, byte a, int y, int x)
  * optimized primarily for the most common cases, that is, for the
  * non-marked floor grids.
  */
-void note_spot(int y, int x)
+void note_spot(POSITION y, POSITION x)
 {
        cave_type *c_ptr = &cave[y][x];
-
-       s16b this_o_idx, next_o_idx = 0;
-
+       OBJECT_IDX this_o_idx, next_o_idx = 0;
 
        /* Blind players see nothing */
        if (p_ptr->blind) return;
@@ -1618,7 +1616,7 @@ void display_dungeon(void)
  *
  * This function should only be called on "legal" grids
  */
-void lite_spot(int y, int x)
+void lite_spot(POSITION y, POSITION x)
 {
        /* Redraw if on screen */
        if (panel_contains(y, x) && in_bounds2(y, x))
@@ -1739,7 +1737,7 @@ void prt_map(void)
 /*
  * print project path
  */
-void prt_path(int y, int x)
+void prt_path(POSITION y, POSITION x)
 {
        int i;
        int path_n;
index f70289f..b6b8d5a 100644 (file)
@@ -662,11 +662,11 @@ extern void apply_default_feat_lighting(byte f_attr[F_LIT_MAX], byte f_char[F_LI
 extern void map_info(POSITION y, POSITION x, byte *ap, char *cp, byte *tap, char *tcp);
 extern void move_cursor_relative(int row, int col);
 extern void print_rel(char c, byte a, int y, int x);
-extern void note_spot(int y, int x);
+extern void note_spot(POSITION y, POSITION x);
 extern void display_dungeon(void);
-extern void lite_spot(int y, int x);
+extern void lite_spot(POSITION y, POSITION x);
 extern void prt_map(void);
-extern void prt_path(int y, int x);
+extern void prt_path(POSITION y, POSITION x);
 extern void display_map(int *cy, int *cx);
 extern void do_cmd_view_map(void);
 extern void forget_lite(void);