• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision170485f3f5ce84e63f0ba5c0c559b72a1f9c90e2 (tree)
Time2018-12-07 00:03:00
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 コメント整理 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/xtra2.c
+++ b/src/xtra2.c
@@ -58,13 +58,8 @@ void check_experience(void)
5858 {
5959 /* Lose a level */
6060 p_ptr->lev--;
61-
62- /* Update some stuff */
6361 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
64-
65- /* Redraw some stuff */
6662 p_ptr->redraw |= (PR_LEV | PR_TITLE);
67-
6863 p_ptr->window |= (PW_PLAYER);
6964 handle_stuff();
7065 }
@@ -100,12 +95,8 @@ void check_experience(void)
10095
10196 msg_format(_("レベル %d にようこそ。", "Welcome to level %d."), p_ptr->lev);
10297
103- /* Update some stuff */
10498 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
105-
106- /* Redraw some stuff */
10799 p_ptr->redraw |= (PR_LEV | PR_TITLE | PR_EXP);
108-
109100 p_ptr->window |= (PW_PLAYER | PW_SPELL | PW_INVEN);
110101
111102 /* HPとMPの上昇量を表示 */
@@ -190,12 +181,8 @@ void check_experience(void)
190181 level_reward = FALSE;
191182 }
192183
193- /* Update some stuff */
194184 p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
195-
196- /* Redraw some stuff */
197185 p_ptr->redraw |= (PR_LEV | PR_TITLE);
198-
199186 p_ptr->window |= (PW_PLAYER | PW_SPELL);
200187 handle_stuff();
201188 }
@@ -719,15 +706,14 @@ cptr extract_note_dies(monster_race *r_ptr)
719706 */
720707 void monster_death(MONSTER_IDX m_idx, bool drop_item)
721708 {
722- int i, j, y, x;
709+ int i, j;
710+ POSITION y, x;
723711
724712 int dump_item = 0;
725713 int dump_gold = 0;
726-
727714 int number = 0;
728715
729716 monster_type *m_ptr = &m_list[m_idx];
730-
731717 monster_race *r_ptr = &r_info[m_ptr->r_idx];
732718
733719 bool visible = ((m_ptr->ml && !p_ptr->image) || (r_ptr->flags1 & RF1_UNIQUE));
@@ -812,7 +798,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
812798
813799 /* Prepare to make a prize */
814800 object_prep(q_ptr, lookup_kind(arena_info[p_ptr->arena_number].tval, arena_info[p_ptr->arena_number].sval));
815-
816801 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART);
817802
818803 /* Drop it in the dungeon */
@@ -1671,7 +1656,6 @@ bool mon_take_hit(MONSTER_IDX m_idx, HIT_POINT dam, bool *fear, cptr note)
16711656 #ifdef WORLD_SCORE
16721657 if (m_ptr->r_idx == MON_SERPENT)
16731658 {
1674- /* Make screen dump */
16751659 screen_dump = make_screen_dump();
16761660 }
16771661 #endif
Show on old repository browser