• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision081465237a60554a856f2c00048e40255041fb16 (tree)
Time2019-01-09 23:01:06
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #38852 更新処理タイミング再調整。 / Readjust update timing.

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -4589,15 +4589,9 @@ static bool ask_quick_start(void)
45894589 /* Calc hitdie, but don't roll */
45904590 get_extra(FALSE);
45914591
4592- /* Calculate the bonuses and hitpoints */
45934592 p_ptr->update |= (PU_BONUS | PU_HP);
4594-
4595- handle_stuff();
4596-
4597- /* Fully healed */
4593+ update_creature(p_ptr);
45984594 p_ptr->chp = p_ptr->mhp;
4599-
4600- /* Fully rested */
46014595 p_ptr->csp = p_ptr->msp;
46024596
46034597 /* Process the player name */
--- a/src/cmd5.c
+++ b/src/cmd5.c
@@ -823,10 +823,10 @@ void do_cmd_study(void)
823823
824824 /* One less spell available */
825825 p_ptr->learned_spells++;
826-#
826+
827827 /* Update Study */
828828 p_ptr->update |= (PU_SPELLS);
829- handle_stuff();
829+ update_creature(p_ptr);
830830
831831 /* Redraw object recall */
832832 p_ptr->window |= (PW_OBJECT);
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -5856,8 +5856,7 @@ void play_game(bool new_game)
58565856 quit(0);
58575857
58585858 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
5859-
5860- handle_stuff();
5859+ update_creature(p_ptr);
58615860
58625861 p_ptr->is_dead = TRUE;
58635862
--- a/src/files.c
+++ b/src/files.c
@@ -6124,7 +6124,7 @@ void do_cmd_save_game(int is_autosave)
61246124 /* HACK -- don't get sanity blast on updating view */
61256125 is_loading_now = FALSE;
61266126
6127- handle_stuff();
6127+ update_creature(p_ptr);
61286128
61296129 /* Initialize monster process */
61306130 mproc_init();
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -1997,7 +1997,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
19971997 if (apply_disenchant(0))
19981998 {
19991999 /* Hack -- Update AC */
2000- handle_stuff();
2000+ update_creature(p_ptr);
20012001 obvious = TRUE;
20022002 }
20032003 }
@@ -2305,7 +2305,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
23052305 obvious = TRUE;
23062306 msg_print(_("酸を浴びせられた!", "You are covered in acid!"));
23072307 get_damage += acid_dam(damage, ddesc, -1, FALSE);
2308- handle_stuff();
2308+ update_creature(p_ptr);
23092309 update_smart_learn(m_idx, DRS_ACID);
23102310 break;
23112311 }
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -7349,10 +7349,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
73497349 }
73507350 }
73517351
7352-
7353- /* Update stuff if needed */
7354- if (p_ptr->update) handle_stuff();
7355-
7352+ update_creature(p_ptr);
73567353
73577354 if (flg & PROJECT_KILL)
73587355 {
@@ -7393,8 +7390,7 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
73937390 }
73947391 }
73957392
7396- /* Update stuff if needed */
7397- if (p_ptr->update) handle_stuff();
7393+ update_creature(p_ptr);
73987394
73997395 /* Check objects */
74007396 if (flg & (PROJECT_ITEM))
Show on old repository browser