リビジョン | c669f43936bbada842775ab38d3c67cac1982dc5 (tree) |
---|---|
日時 | 2018-12-16 10:49:24 |
作者 | Deskull <deskull@user...> |
コミッター | Deskull |
[Refactor] #37353 update_stuff() の直接呼出しを抑止。 / Forbid call of update_stuff() except handle_stuff().
@@ -4580,13 +4580,9 @@ static bool player_birth_aux(void) | ||
4580 | 4580 | { |
4581 | 4581 | /* Calculate the bonuses and hitpoints */ |
4582 | 4582 | p_ptr->update |= (PU_BONUS | PU_HP); |
4583 | + handle_stuff(); | |
4583 | 4584 | |
4584 | - update_stuff(); | |
4585 | - | |
4586 | - /* Fully healed */ | |
4587 | 4585 | p_ptr->chp = p_ptr->mhp; |
4588 | - | |
4589 | - /* Fully rested */ | |
4590 | 4586 | p_ptr->csp = p_ptr->msp; |
4591 | 4587 | |
4592 | 4588 | /* Display the player */ |
@@ -4778,7 +4774,7 @@ static bool ask_quick_start(void) | ||
4778 | 4774 | /* Calculate the bonuses and hitpoints */ |
4779 | 4775 | p_ptr->update |= (PU_BONUS | PU_HP); |
4780 | 4776 | |
4781 | - update_stuff(); | |
4777 | + handle_stuff(); | |
4782 | 4778 | |
4783 | 4779 | /* Fully healed */ |
4784 | 4780 | p_ptr->chp = p_ptr->mhp; |
@@ -878,7 +878,7 @@ void do_cmd_study(void) | ||
878 | 878 | # |
879 | 879 | /* Update Study */ |
880 | 880 | p_ptr->update |= (PU_SPELLS); |
881 | - update_stuff(); | |
881 | + handle_stuff(); | |
882 | 882 | |
883 | 883 | /* Redraw object recall */ |
884 | 884 | p_ptr->window |= (PW_OBJECT); |
@@ -5756,7 +5756,7 @@ void play_game(bool new_game) | ||
5756 | 5756 | |
5757 | 5757 | p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS); |
5758 | 5758 | |
5759 | - update_stuff(); | |
5759 | + handle_stuff(); | |
5760 | 5760 | |
5761 | 5761 | p_ptr->is_dead = TRUE; |
5762 | 5762 |
@@ -6137,7 +6137,7 @@ void do_cmd_save_game(int is_autosave) | ||
6137 | 6137 | /* HACK -- don't get sanity blast on updating view */ |
6138 | 6138 | is_loading_now = FALSE; |
6139 | 6139 | |
6140 | - update_stuff(); | |
6140 | + handle_stuff(); | |
6141 | 6141 | |
6142 | 6142 | /* Initialize monster process */ |
6143 | 6143 | mproc_init(); |
@@ -2012,7 +2012,7 @@ bool make_attack_normal(MONSTER_IDX m_idx) | ||
2012 | 2012 | if (apply_disenchant(0)) |
2013 | 2013 | { |
2014 | 2014 | /* Hack -- Update AC */ |
2015 | - update_stuff(); | |
2015 | + handle_stuff(); | |
2016 | 2016 | obvious = TRUE; |
2017 | 2017 | } |
2018 | 2018 | } |
@@ -2320,7 +2320,7 @@ bool make_attack_normal(MONSTER_IDX m_idx) | ||
2320 | 2320 | obvious = TRUE; |
2321 | 2321 | msg_print(_("酸を浴びせられた!", "You are covered in acid!")); |
2322 | 2322 | get_damage += acid_dam(damage, ddesc, -1, FALSE); |
2323 | - update_stuff(); | |
2323 | + handle_stuff(); | |
2324 | 2324 | update_smart_learn(m_idx, DRS_ACID); |
2325 | 2325 | break; |
2326 | 2326 | } |
@@ -683,7 +683,7 @@ bool process_the_world(int num, MONSTER_IDX who, bool vs_player) | ||
683 | 683 | reset_target(m_ptr); |
684 | 684 | |
685 | 685 | if (p_ptr->notice) notice_stuff(); |
686 | - if (p_ptr->update) update_stuff(); | |
686 | + if (p_ptr->update) handle_stuff(); | |
687 | 687 | if (p_ptr->redraw) redraw_stuff(); |
688 | 688 | if (p_ptr->window) window_stuff(); |
689 | 689 |
@@ -7387,7 +7387,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da | ||
7387 | 7387 | |
7388 | 7388 | |
7389 | 7389 | /* Update stuff if needed */ |
7390 | - if (p_ptr->update) update_stuff(); | |
7390 | + if (p_ptr->update) handle_stuff(); | |
7391 | 7391 | |
7392 | 7392 | |
7393 | 7393 | if (flg & PROJECT_KILL) |
@@ -7430,7 +7430,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da | ||
7430 | 7430 | } |
7431 | 7431 | |
7432 | 7432 | /* Update stuff if needed */ |
7433 | - if (p_ptr->update) update_stuff(); | |
7433 | + if (p_ptr->update) handle_stuff(); | |
7434 | 7434 | |
7435 | 7435 | /* Check objects */ |
7436 | 7436 | if (flg & (PROJECT_ITEM)) |
@@ -4798,7 +4798,7 @@ bool_hack life_stream(bool_hack message, bool_hack virtue) | ||
4798 | 4798 | (void)set_cut(0); |
4799 | 4799 | (void)restore_all_status(); |
4800 | 4800 | (void)set_shero(0, TRUE); |
4801 | - update_stuff(); | |
4801 | + handle_stuff(); | |
4802 | 4802 | hp_player(5000); |
4803 | 4803 | |
4804 | 4804 | return TRUE; |
@@ -345,7 +345,7 @@ static void do_cmd_wiz_reset_class(void) | ||
345 | 345 | /* {.} and {$} effect p_ptr->warning and TRC_TELEPORT_SELF */ |
346 | 346 | p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS); |
347 | 347 | |
348 | - update_stuff(); | |
348 | + handle_stuff(); | |
349 | 349 | } |
350 | 350 | |
351 | 351 |