OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 17 Nov 2018 15:22:32 +0000 (00:22 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 17 Nov 2018 15:22:32 +0000 (00:22 +0900)
src/object2.c
src/racial.c
src/realm-hissatsu.c

index 98e42f6..c78c359 100644 (file)
@@ -201,7 +201,7 @@ void delete_object_idx(OBJECT_IDX o_idx)
        /* Dungeon floor */
        if (!(j_ptr->held_m_idx))
        {
-               int y, x;
+               POSITION y, x;
 
                /* Location */
                y = j_ptr->iy;
@@ -321,7 +321,7 @@ static void compact_objects_aux(IDX i1, IDX i2)
        /* Dungeon */
        else
        {
-               int y, x;
+               POSITION y, x;
 
                /* Acquire location */
                y = o_ptr->iy;
@@ -365,8 +365,9 @@ static void compact_objects_aux(IDX i1, IDX i2)
  */
 void compact_objects(int size)
 {
-       IDX i;
-       int y, x, num, cnt;
+       OBJECT_IDX i;
+       POSITION y, x;
+       int num, cnt;
        int cur_lev, cur_dis, chance;
        object_type *o_ptr;
 
index 4e46cad..7fa4e8c 100644 (file)
@@ -746,8 +746,8 @@ static int racial_aux(power_desc_type *pd_ptr)
  */
 static bool cmd_racial_power_aux(s32b command)
 {
-       s16b        plev = p_ptr->lev;
-       int         dir = 0;
+       PLAYER_LEVEL plev = p_ptr->lev;
+       DIRECTION dir = 0;
 
        if (command <= -3)
        {
index 423eca9..2d5b8f4 100644 (file)
@@ -37,8 +37,8 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int cdir;
-                       int y, x;
+                       DIRECTION cdir;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -90,7 +90,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -124,7 +124,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -210,7 +210,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -235,7 +235,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -259,7 +259,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -343,7 +343,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -371,7 +371,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -396,7 +396,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -421,7 +421,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -446,7 +446,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -472,7 +472,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -507,7 +507,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y = 0, x = 0;
+                       POSITION y = 0, x = 0;
 
                        cave_type       *c_ptr;
                        monster_type    *m_ptr;
@@ -548,7 +548,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -706,7 +706,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;
@@ -839,7 +839,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (cast)
                {
                        int total_damage = 0, basedam, i;
-                       int y, x;
+                       POSITION y, x;
                        BIT_FLAGS flgs[TR_FLAG_SIZE];
                        object_type *o_ptr;
 
@@ -891,7 +891,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                if (cast)
                {
-                       int y, x;
+                       POSITION y, x;
 
                        if (!get_rep_dir2(&dir)) return NULL;
                        if (dir == 5) return NULL;