OSDN Git Service

[Refactor] #37287 #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Thu, 4 Oct 2018 11:00:42 +0000 (20:00 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 4 Oct 2018 11:00:42 +0000 (20:00 +0900)
src/externs.h
src/spells3.c
src/trap.c

index 724d62e..5eed9b4 100644 (file)
@@ -1254,7 +1254,7 @@ extern bool brand_bolts(void);
 extern bool polymorph_monster(POSITION y, POSITION x);
 extern bool dimension_door(void);
 extern bool mirror_tunnel(void);
-extern bool summon_kin_player(int level, int y, int x, BIT_FLAGS mode);
+extern bool summon_kin_player(DEPTH level, POSITION y, POSITION x, BIT_FLAGS mode);
 extern void massacre(void);
 
 /* store.c */
index 6f92fd8..bea69c4 100644 (file)
@@ -5581,7 +5581,7 @@ bool eat_magic(int power)
  * @param mode 召喚オプション
  * @return ターンを消費した場合TRUEを返す
  */
-bool summon_kin_player(int level, int y, int x, BIT_FLAGS mode)
+bool summon_kin_player(DEPTH level, POSITION y, POSITION x, BIT_FLAGS mode)
 {
        bool pet = (bool)(mode & PM_FORCE_PET);
        if (!pet) mode |= PM_NO_PET;
@@ -5697,7 +5697,7 @@ bool summon_kin_player(int level, int y, int x, BIT_FLAGS mode)
  */
 void massacre(void)
 {
-       int x, y;
+       POSITION x, y;
        cave_type       *c_ptr;
        monster_type    *m_ptr;
        int dir;
index 18efb6c..d705540 100644 (file)
@@ -297,7 +297,7 @@ static void hit_trap_set_abnormal_status(cptr trap_message, bool resist, bool(*s
 void hit_trap(bool break_trap)\r
 {\r
        int i, num, dam;\r
-       int x = p_ptr->x, y = p_ptr->y;\r
+       POSITION x = p_ptr->x, y = p_ptr->y;\r
 \r
        /* Get the cave grid */\r
        cave_type *c_ptr = &cave[y][x];\r