• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision056c3d9c4e67543ad807c19d995b32c68813837f (tree)
Time2019-05-05 11:40:44
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38844 invoking_midnight_curse を player_type 構造体へ移動.

Change Summary

Incremental Difference

--- a/src/core.c
+++ b/src/core.c
@@ -3317,7 +3317,7 @@ static void process_world(void)
33173317 generate_encounter = TRUE;
33183318 }
33193319
3320- invoking_midnight_curse = TRUE;
3320+ p_ptr->invoking_midnight_curse = TRUE;
33213321 }
33223322 }
33233323
@@ -4383,11 +4383,11 @@ static void process_player(void)
43834383 p_ptr->hack_mutation = FALSE;
43844384 }
43854385
4386- if (invoking_midnight_curse)
4386+ if (p_ptr->invoking_midnight_curse)
43874387 {
43884388 int count = 0;
43894389 activate_ty_curse(FALSE, &count);
4390- invoking_midnight_curse = FALSE;
4390+ p_ptr->invoking_midnight_curse = FALSE;
43914391 }
43924392
43934393 if (p_ptr->inside_battle)
--- a/src/externs.h
+++ b/src/externs.h
@@ -122,7 +122,7 @@ extern s16b command_wrk;
122122 extern s16b command_new;
123123 extern bool msg_flag;
124124 extern s16b running;
125-extern bool invoking_midnight_curse;
125+
126126 extern GAME_TURN old_battle;
127127 extern bool use_sound;
128128 extern bool use_music;
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -542,6 +542,7 @@ struct player_type
542542 bool warning;
543543 bool mighty_throw;
544544 bool see_nocto; /* Noctovision */
545+ bool invoking_midnight_curse;
545546
546547 DICE_NUMBER to_dd[2]; /* Extra dice/sides */
547548 DICE_SID to_ds[2];
--- a/src/variable.c
+++ b/src/variable.c
@@ -101,8 +101,6 @@ bool msg_flag; /* Used in msg_print() for "buffering" */
101101
102102 s16b running; /* Current counter for running, if any */
103103
104-bool invoking_midnight_curse; /*!< 悪夢モード時の真夜中太古の呪い発生処理フラグ */
105-
106104 GAME_TURN old_battle;
107105
108106 bool use_sound; /* The "sound" mode is enabled */
Show on old repository browser