OSDN Git Service

[Refactor] #37353 total_friends を cmd-pet.c/h に移動.
authordeskull <deskull@users.sourceforge.jp>
Sun, 19 May 2019 06:44:59 +0000 (15:44 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 19 May 2019 06:44:59 +0000 (15:44 +0900)
src/cmd-pet.c
src/cmd-pet.h
src/externs.h
src/variable.c

index d033d7a..cfb2097 100644 (file)
@@ -20,6 +20,8 @@
 #include "targeting.h"
 #include "world.h"
 
+int total_friends = 0;
+
 /*!
 * @brief プレイヤーの騎乗/下馬処理判定
 * @param g_ptr プレイヤーの移動先マスの構造体参照ポインタ
index 5e31dc4..cf09403 100644 (file)
@@ -8,6 +8,8 @@ extern void do_cmd_pet(void);
 extern bool player_can_ride_aux(grid_type *g_ptr, bool now_riding);
 extern bool rakuba(HIT_POINT dam, bool force);
 
+extern int total_friends;
+
 /*** Pet constants ***/
 
 
index 2c12b07..777bbaf 100644 (file)
@@ -56,7 +56,6 @@ extern s16b command_new;
 
 extern bool repair_monsters;
 extern bool repair_objects;
-extern int total_friends;
 
 extern bool reset_concent;
 
index e4f227f..e202f71 100644 (file)
@@ -29,7 +29,6 @@ s16b command_new;             /* Command chaining from inven/equip view */
 bool repair_monsters;  /* Hack -- optimize detect monsters */
 bool repair_objects;   /* Hack -- optimize detect objects */
 
-int total_friends = 0;
 
 /*
  * Dungeon size info