OSDN Git Service

[Fix] #38791 Winsows版ビルドオプションを修正。 / Fix build option on windows.
[hengband/hengband.git] / src / realm-hissatsu.c
index 423eca9..f36d482 100644 (file)
@@ -37,10 +37,10 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        for (cdir = 0; cdir < 8; cdir++)
@@ -90,9 +90,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -124,9 +124,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -174,7 +174,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                return NULL;
                        }
 
-                       if (!get_rep_dir2(&dir)) return NULL;
+                       if (!get_direction(&dir, FALSE, FALSE)) return NULL;
 
                        if (dir == 5) return NULL;
                        y = p_ptr->y + ddy[dir];
@@ -210,9 +210,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -235,9 +235,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -259,9 +259,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -308,7 +308,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                        m_ptr->fy = ty;
                                        m_ptr->fx = tx;
 
-                                       update_mon(m_idx, TRUE);
+                                       update_monster(m_idx, TRUE);
                                        lite_spot(oy, ox);
                                        lite_spot(ty, tx);
 
@@ -343,9 +343,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -371,9 +371,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -396,9 +396,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -421,9 +421,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -446,9 +446,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -472,9 +472,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -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,9 +548,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -625,7 +625,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                {
                        int i;
 
-                       if (!get_rep_dir2(&dir)) return NULL;
+                       if (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        for (i = 0; i < 3; i++)
@@ -674,7 +674,7 @@ cptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                m_ptr->fy = ny;
                                m_ptr->fx = nx;
 
-                               update_mon(m_idx, TRUE);
+                               update_monster(m_idx, TRUE);
 
                                /* Redraw the old spot */
                                lite_spot(y, x);
@@ -706,9 +706,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -839,11 +839,11 @@ 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;
 
-                       if (!get_rep_dir2(&dir)) return NULL;
+                       if (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];
@@ -891,9 +891,9 @@ 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 (!get_direction(&dir, FALSE, FALSE)) return NULL;
                        if (dir == 5) return NULL;
 
                        y = p_ptr->y + ddy[dir];