• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

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


コミットメタ情報

リビジョンc669f43936bbada842775ab38d3c67cac1982dc5 (tree)
日時2018-12-16 10:49:24
作者Deskull <deskull@user...>
コミッターDeskull

ログメッセージ

[Refactor] #37353 update_stuff() の直接呼出しを抑止。 / Forbid call of update_stuff() except handle_stuff().

変更サマリ

差分

--- a/src/birth.c
+++ b/src/birth.c
@@ -4580,13 +4580,9 @@ static bool player_birth_aux(void)
45804580 {
45814581 /* Calculate the bonuses and hitpoints */
45824582 p_ptr->update |= (PU_BONUS | PU_HP);
4583+ handle_stuff();
45834584
4584- update_stuff();
4585-
4586- /* Fully healed */
45874585 p_ptr->chp = p_ptr->mhp;
4588-
4589- /* Fully rested */
45904586 p_ptr->csp = p_ptr->msp;
45914587
45924588 /* Display the player */
@@ -4778,7 +4774,7 @@ static bool ask_quick_start(void)
47784774 /* Calculate the bonuses and hitpoints */
47794775 p_ptr->update |= (PU_BONUS | PU_HP);
47804776
4781- update_stuff();
4777+ handle_stuff();
47824778
47834779 /* Fully healed */
47844780 p_ptr->chp = p_ptr->mhp;
--- a/src/cmd5.c
+++ b/src/cmd5.c
@@ -878,7 +878,7 @@ void do_cmd_study(void)
878878 #
879879 /* Update Study */
880880 p_ptr->update |= (PU_SPELLS);
881- update_stuff();
881+ handle_stuff();
882882
883883 /* Redraw object recall */
884884 p_ptr->window |= (PW_OBJECT);
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -5756,7 +5756,7 @@ void play_game(bool new_game)
57565756
57575757 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
57585758
5759- update_stuff();
5759+ handle_stuff();
57605760
57615761 p_ptr->is_dead = TRUE;
57625762
--- a/src/files.c
+++ b/src/files.c
@@ -6137,7 +6137,7 @@ void do_cmd_save_game(int is_autosave)
61376137 /* HACK -- don't get sanity blast on updating view */
61386138 is_loading_now = FALSE;
61396139
6140- update_stuff();
6140+ handle_stuff();
61416141
61426142 /* Initialize monster process */
61436143 mproc_init();
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -2012,7 +2012,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
20122012 if (apply_disenchant(0))
20132013 {
20142014 /* Hack -- Update AC */
2015- update_stuff();
2015+ handle_stuff();
20162016 obvious = TRUE;
20172017 }
20182018 }
@@ -2320,7 +2320,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
23202320 obvious = TRUE;
23212321 msg_print(_("酸を浴びせられた!", "You are covered in acid!"));
23222322 get_damage += acid_dam(damage, ddesc, -1, FALSE);
2323- update_stuff();
2323+ handle_stuff();
23242324 update_smart_learn(m_idx, DRS_ACID);
23252325 break;
23262326 }
--- a/src/monster-status.c
+++ b/src/monster-status.c
@@ -683,7 +683,7 @@ bool process_the_world(int num, MONSTER_IDX who, bool vs_player)
683683 reset_target(m_ptr);
684684
685685 if (p_ptr->notice) notice_stuff();
686- if (p_ptr->update) update_stuff();
686+ if (p_ptr->update) handle_stuff();
687687 if (p_ptr->redraw) redraw_stuff();
688688 if (p_ptr->window) window_stuff();
689689
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -7387,7 +7387,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
73877387
73887388
73897389 /* Update stuff if needed */
7390- if (p_ptr->update) update_stuff();
7390+ if (p_ptr->update) handle_stuff();
73917391
73927392
73937393 if (flg & PROJECT_KILL)
@@ -7430,7 +7430,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
74307430 }
74317431
74327432 /* Update stuff if needed */
7433- if (p_ptr->update) update_stuff();
7433+ if (p_ptr->update) handle_stuff();
74347434
74357435 /* Check objects */
74367436 if (flg & (PROJECT_ITEM))
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -4798,7 +4798,7 @@ bool_hack life_stream(bool_hack message, bool_hack virtue)
47984798 (void)set_cut(0);
47994799 (void)restore_all_status();
48004800 (void)set_shero(0, TRUE);
4801- update_stuff();
4801+ handle_stuff();
48024802 hp_player(5000);
48034803
48044804 return TRUE;
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -345,7 +345,7 @@ static void do_cmd_wiz_reset_class(void)
345345 /* {.} and {$} effect p_ptr->warning and TRC_TELEPORT_SELF */
346346 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
347347
348- update_stuff();
348+ handle_stuff();
349349 }
350350
351351
旧リポジトリブラウザで表示