OSDN Git Service

[Refactor] #37353 職業ID定義を player-class.h へ移動.
[hengband/hengband.git] / src / player-move.c
index 1284665..2d96595 100644 (file)
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
+#include "realm-song.h"
+#include "autopick.h"
 #include "dungeon.h"
 #include "floor.h"
 #include "melee.h"
 #include "player-move.h"
 #include "player-status.h"
 #include "player-effects.h"
+#include "player-class.h"
 #include "spells-floor.h"
 #include "feature.h"
 #include "warning.h"
 #include "view-mainwindow.h"
 #include "world.h"
 #include "objectkind.h"
+#include "autopick.h"
+#include "targeting.h"
 
 
 #ifdef TRAVEL
@@ -1134,7 +1140,7 @@ void move_player(DIRECTION dir, bool do_pickup, bool break_trap)
        {
                msg_format(_("空を飛ばないと%sの上には行けない。", "You need to fly to go through the %s."), f_name + f_info[get_feat_mimic(g_ptr)].name);
                free_turn(p_ptr);
-               running = 0;
+               p_ptr->running = 0;
                oktomove = FALSE;
        }
 
@@ -1885,7 +1891,7 @@ void run_step(DIRECTION dir)
        }
 
        /* Decrease the run counter */
-       if (--running <= 0) return;
+       if (--p_ptr->running <= 0) return;
 
        /* Take time */
        take_turn(p_ptr, 100);
@@ -2313,10 +2319,10 @@ void disturb(bool stop_search, bool stop_travel)
        }
 
        /* Cancel running */
-       if (running)
+       if (p_ptr->running)
        {
                /* Cancel */
-               running = 0;
+               p_ptr->running = 0;
 
                /* Check for new panel if appropriate */
                if (center_player && !center_running) verify_panel();