• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisiond6653751b79e0ec02cd1f01cc9c0ba2adba564fd (tree)
Time2019-05-19 15:44:59
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 total_friends を cmd-pet.c/h に移動.

Change Summary

Incremental Difference

--- a/src/cmd-pet.c
+++ b/src/cmd-pet.c
@@ -20,6 +20,8 @@
2020 #include "targeting.h"
2121 #include "world.h"
2222
23+int total_friends = 0;
24+
2325 /*!
2426 * @brief プレイヤーの騎乗/下馬処理判定
2527 * @param g_ptr プレイヤーの移動先マスの構造体参照ポインタ
--- a/src/cmd-pet.h
+++ b/src/cmd-pet.h
@@ -8,6 +8,8 @@ extern void do_cmd_pet(void);
88 extern bool player_can_ride_aux(grid_type *g_ptr, bool now_riding);
99 extern bool rakuba(HIT_POINT dam, bool force);
1010
11+extern int total_friends;
12+
1113 /*** Pet constants ***/
1214
1315
--- a/src/externs.h
+++ b/src/externs.h
@@ -56,7 +56,6 @@ extern s16b command_new;
5656
5757 extern bool repair_monsters;
5858 extern bool repair_objects;
59-extern int total_friends;
6059
6160 extern bool reset_concent;
6261
--- a/src/variable.c
+++ b/src/variable.c
@@ -29,7 +29,6 @@ s16b command_new; /* Command chaining from inven/equip view */
2929 bool repair_monsters; /* Hack -- optimize detect monsters */
3030 bool repair_objects; /* Hack -- optimize detect objects */
3131
32-int total_friends = 0;
3332
3433 /*
3534 * Dungeon size info
Show on old repository browser