• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione151a8d14e0bf5a582090efaddbb48154dd08c4f (tree)
Time2019-06-12 08:30:49
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除 (/* Skip illegal grids */)

Change Summary

Incremental Difference

--- a/src/object2.c
+++ b/src/object2.c
@@ -4639,7 +4639,6 @@ OBJECT_IDX drop_near(object_type *j_ptr, PERCENTAGE chance, POSITION y, POSITION
46394639 ty = y + dy;
46404640 tx = x + dx;
46414641
4642- /* Skip illegal grids */
46434642 if (!in_bounds(ty, tx)) continue;
46444643
46454644 /* Require line of projection */
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -1398,7 +1398,6 @@ bool destroy_area(POSITION y1, POSITION x1, POSITION r, bool in_generate)
13981398 {
13991399 for (x = (x1 - r); x <= (x1 + r); x++)
14001400 {
1401- /* Skip illegal grids */
14021401 if (!in_bounds(y, x)) continue;
14031402
14041403 /* Extract the distance */
@@ -1567,7 +1566,6 @@ bool destroy_area(POSITION y1, POSITION x1, POSITION r, bool in_generate)
15671566 {
15681567 for (x = (x1 - r); x <= (x1 + r); x++)
15691568 {
1570- /* Skip illegal grids */
15711569 if (!in_bounds(y, x)) continue;
15721570
15731571 /* Extract the distance */
@@ -1697,7 +1695,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
16971695 yy = cy + dy;
16981696 xx = cx + dx;
16991697
1700- /* Skip illegal grids */
17011698 if (!in_bounds(yy, xx)) continue;
17021699
17031700 /* Skip distant grids */
@@ -2036,7 +2033,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
20362033 yy = cy + dy;
20372034 xx = cx + dx;
20382035
2039- /* Skip illegal grids */
20402036 if (!in_bounds(yy, xx)) continue;
20412037
20422038 /* Skip distant grids */
--- a/src/trap.c
+++ b/src/trap.c
@@ -611,7 +611,6 @@ void hit_trap(bool break_trap)
611611 POSITION x1 = rand_spread(x, 7);
612612 POSITION y1 = rand_spread(y, 5);
613613
614- /* Skip illegal grids */
615614 if (!in_bounds(y1, x1)) continue;
616615
617616 /* Require line of projection */
Show on old repository browser