• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision23527b1ed4de80b9c7fe962a623e924fc38e4fb5 (tree)
Time2019-06-12 08:33:02
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/grid.c
+++ b/src/grid.c
@@ -561,7 +561,6 @@ static int next_to_corr(POSITION y1, POSITION x1)
561561 /* Scan adjacent grids */
562562 for (i = 0; i < 4; i++)
563563 {
564- /* Extract the location */
565564 y = y1 + ddy_ddd[i];
566565 x = x1 + ddx_ddd[i];
567566 g_ptr = &current_floor_ptr->grid_array[y][x];
--- a/src/mspells2.c
+++ b/src/mspells2.c
@@ -183,10 +183,8 @@ static bool breath_direct(POSITION y1, POSITION x1, POSITION y2, POSITION x2, PO
183183
184184 for (i = 0; i < grids; i++)
185185 {
186- /* Extract the location */
187186 y = gy[i];
188187 x = gx[i];
189-
190188 if ((y == y2) && (x == x2)) hit2 = TRUE;
191189 if (player_bold(y, x)) hityou = TRUE;
192190 }
--- a/src/rooms-vault.c
+++ b/src/rooms-vault.c
@@ -343,7 +343,6 @@ static void build_vault(POSITION yval, POSITION xval, POSITION ymax, POSITION xm
343343 /* Flip / rotate */
344344 coord_trans(&i, &j, xoffset, yoffset, transno);
345345
346- /* Extract the location */
347346 if (transno % 2 == 0)
348347 {
349348 /* no swap of x/y */
@@ -550,7 +549,6 @@ static void build_vault(POSITION yval, POSITION xval, POSITION ymax, POSITION xm
550549 /* Flip / rotate */
551550 coord_trans(&i, &j, xoffset, yoffset, transno);
552551
553- /* Extract the location */
554552 if (transno % 2 == 0)
555553 {
556554 /* no swap of x/y */
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -6176,7 +6176,6 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
61766176 /* Dump everything with this radius */
61776177 for (i = gm[t]; i < gm[t+1]; i++)
61786178 {
6179- /* Extract the location */
61806179 y = gy[i];
61816180 x = gx[i];
61826181
@@ -6221,7 +6220,6 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da
62216220 /* Erase the explosion drawn above */
62226221 for (i = 0; i < grids; i++)
62236222 {
6224- /* Extract the location */
62256223 y = gy[i];
62266224 x = gx[i];
62276225
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -1691,7 +1691,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
16911691 {
16921692 for (dx = -r; dx <= r; dx++)
16931693 {
1694- /* Extract the location */
16951694 yy = cy + dy;
16961695 xx = cx + dx;
16971696
@@ -1834,7 +1833,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
18341833 {
18351834 for (dx = -r; dx <= r; dx++)
18361835 {
1837- /* Extract the location */
18381836 yy = cy + dy;
18391837 xx = cx + dx;
18401838
@@ -1973,7 +1971,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
19731971 {
19741972 for (dx = -r; dx <= r; dx++)
19751973 {
1976- /* Extract the location */
19771974 yy = cy + dy;
19781975 xx = cx + dx;
19791976
@@ -2029,7 +2026,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
20292026 {
20302027 for (dx = -r; dx <= r; dx++)
20312028 {
2032- /* Extract the location */
20332029 yy = cy + dy;
20342030 xx = cx + dx;
20352031
Show on old repository browser