OSDN Git Service

[Refactor] #37353 stop_mouth() を player-status.c/h へ移動. / Move stop_mouth() to player...
authordeskull <deskull@users.sourceforge.jp>
Tue, 11 Feb 2020 05:29:39 +0000 (14:29 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 11 Feb 2020 05:29:39 +0000 (14:29 +0900)
src/player-status.c
src/player-status.h
src/spells.h
src/spells2.c

index dfab803..1988b8b 100644 (file)
@@ -5405,3 +5405,14 @@ void stop_singing(player_type *creature_ptr)
        creature_ptr->update |= (PU_BONUS);
        creature_ptr->redraw |= (PR_STATUS);
 }
+
+/*!
+ * @brief 口を使う継続的な処理を中断する
+ * @param caster_ptr プレーヤーへの参照ポインタ
+ * @return なし
+ */
+void stop_mouth(player_type *caster_ptr)
+{
+       if (music_singing_any(caster_ptr)) stop_singing(caster_ptr);
+       if (hex_spelling_any(caster_ptr)) stop_hex_spell_all(caster_ptr);
+}
index 41d13ac..4291aaa 100644 (file)
@@ -836,3 +836,4 @@ extern bool can_two_hands_wielding(player_type *creature_ptr);
 extern void cheat_death(player_type *creature_ptr);
 
 extern void stop_singing(player_type *creature_ptr);
+extern void stop_mouth(player_type *caster_ptr);
index 9f5b215..c30176a 100644 (file)
@@ -254,7 +254,6 @@ extern bool cast_wrath_of_the_god(player_type *caster_ptr, HIT_POINT dam, POSITI
 extern void cast_wonder(player_type *caster_ptr, DIRECTION dir);
 extern void cast_invoke_spirits(player_type *caster_ptr, DIRECTION dir);
 extern void cast_shuffle(player_type *caster_ptr);
-extern void stop_mouth(player_type *caster_ptr);
 extern bool_hack vampirism(player_type *caster_ptr);
 extern bool hit_and_away(player_type *caster_ptr);
 extern bool psychometry(player_type *caster_ptr);
index 0a22532..d8cf429 100644 (file)
@@ -3828,18 +3828,6 @@ void cast_shuffle(player_type *caster_ptr)
 }
 
 
-/*!
- * @brief 口を使う継続的な処理を中断する
- * @param caster_ptr プレーヤーへの参照ポインタ
- * @return なし
- */
-void stop_mouth(player_type *caster_ptr)
-{
-       if (music_singing_any(caster_ptr)) stop_singing(caster_ptr);
-       if (hex_spelling_any(caster_ptr)) stop_hex_spell_all(caster_ptr);
-}
-
-
 bool_hack vampirism(player_type *caster_ptr)
 {
        if (d_info[caster_ptr->dungeon_idx].flags1 & DF1_NO_MELEE)