• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionac63f81224df70c2411e234e1ea806339e9e15d3 (tree)
Time2019-06-12 08:47:34
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除 (/* Extract monster name ...)

Change Summary

Incremental Difference

--- a/src/melee1.c
+++ b/src/melee1.c
@@ -1189,7 +1189,6 @@ static void natural_attack(MONSTER_IDX m_idx, int attack, bool *fear, bool *mdea
11891189
11901190 }
11911191
1192- /* Extract monster name (or "it") */
11931192 monster_desc(m_name, m_ptr, 0);
11941193
11951194 /* Calculate the "attack quality" */
@@ -1376,7 +1375,6 @@ static void py_attack_aux(POSITION y, POSITION x, bool *fear, bool *mdeath, s16b
13761375 /* Disturb the monster */
13771376 (void)set_monster_csleep(g_ptr->m_idx, 0);
13781377
1379- /* Extract monster name (or "it") */
13801378 monster_desc(m_name, m_ptr, 0);
13811379
13821380 /* Calculate the "attack quality" */
@@ -2180,7 +2178,6 @@ bool py_attack(POSITION y, POSITION x, COMBAT_OPTION_IDX mode)
21802178 return FALSE;
21812179 }
21822180
2183- /* Extract monster name (or "it") */
21842181 monster_desc(m_name, m_ptr, 0);
21852182
21862183 if (m_ptr->ml)
@@ -4129,7 +4126,6 @@ void mon_take_hit_mon(MONSTER_IDX m_idx, HIT_POINT dam, bool *dead, bool *fear,
41294126 /* Can the player be aware of this attack? */
41304127 bool known = (m_ptr->cdis <= MAX_SIGHT);
41314128
4132- /* Extract monster name */
41334129 monster_desc(m_name, m_ptr, 0);
41344130
41354131 /* Redraw (later) if needed */
@@ -4282,7 +4278,6 @@ void mon_take_hit_mon(MONSTER_IDX m_idx, HIT_POINT dam, bool *dead, bool *fear,
42824278
42834279 if (p_ptr->riding && (p_ptr->riding == m_idx) && (dam > 0))
42844280 {
4285- /* Extract monster name */
42864281 monster_desc(m_name, m_ptr, 0);
42874282
42884283 if (m_ptr->hp > m_ptr->maxhp / 3) dam = (dam + 1) / 2;
--- a/src/monster-status.c
+++ b/src/monster-status.c
@@ -1126,7 +1126,6 @@ bool mon_take_hit(MONSTER_IDX m_idx, HIT_POINT dam, bool *fear, concptr note)
11261126 monster_race_track(m_ptr->ap_r_idx);
11271127 }
11281128
1129- /* Extract monster name */
11301129 monster_desc(m_name, m_ptr, MD_TRUE_NAME);
11311130
11321131 /* Don't kill Amberites */
--- a/src/player-move.c
+++ b/src/player-move.c
@@ -1031,7 +1031,6 @@ void move_player(DIRECTION dir, bool do_pickup, bool break_trap)
10311031 /* Disturb the monster */
10321032 (void)set_monster_csleep(g_ptr->m_idx, 0);
10331033
1034- /* Extract monster name (or "it") */
10351034 monster_desc(m_name, m_ptr, 0);
10361035
10371036 if (m_ptr->ml)
--- a/src/shoot.c
+++ b/src/shoot.c
@@ -942,8 +942,6 @@ bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
942942 if (m_ptr->r_idx == MON_GOEMON && !MON_CSLEEP(m_ptr))
943943 {
944944 GAME_TEXT m_name[MAX_NLEN];
945-
946- /* Extract monster name */
947945 monster_desc(m_name, m_ptr, 0);
948946 msg_format(_("%sは%sを斬り捨てた!", "%s cuts down %s!"), m_name, o_name);
949947 }
Show on old repository browser