• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision965341e7756adacaafd030399a23d0f13d270eb2 (tree)
Time2019-06-29 19:21:14
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39077 set_mimic() の引数型変更.

Change Summary

Incremental Difference

--- a/src/player-effects.c
+++ b/src/player-effects.c
@@ -361,7 +361,7 @@ void dispel_player(player_type *creature_ptr)
361361 * @param do_dec 現在の継続時間より長い値のみ上書きする
362362 * @return ステータスに影響を及ぼす変化があった場合TRUEを返す。
363363 */
364-bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, IDX p, bool do_dec)
364+bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool do_dec)
365365 {
366366 bool notice = FALSE;
367367 v = (v > 10000) ? 10000 : (v < 0) ? 0 : v;
--- a/src/player-effects.h
+++ b/src/player-effects.h
@@ -14,7 +14,7 @@ struct kamae
1414 extern void set_action(player_type *creature_ptr, ACTION_IDX typ);
1515 extern void reset_tim_flags(player_type *creature_ptr);
1616 extern void dispel_player(player_type *creature_ptr);
17-extern bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, IDX p, bool do_dec);
17+extern bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool do_dec);
1818 extern bool set_blind(player_type *creature_ptr, TIME_EFFECT v);
1919 extern bool set_confused(player_type *creature_ptr, TIME_EFFECT v);
2020 extern bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v);
Show on old repository browser