• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision549ec891d4078a178d5c359bb3be07142280f2b3 (tree)
Time2019-02-12 00:19:45
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -4371,8 +4371,6 @@ void wiz_lite(bool ninja)
43714371 {
43724372 POSITION yy = y + ddy_ddd[i];
43734373 POSITION xx = x + ddx_ddd[i];
4374-
4375- /* Get the grid */
43764374 g_ptr = &grid_array[yy][xx];
43774375
43784376 /* Feature code (applying "mimic" field) */
--- a/src/floor-events.c
+++ b/src/floor-events.c
@@ -12,7 +12,6 @@ void day_break()
1212 {
1313 for (x = 0; x < cur_wid; x++)
1414 {
15- /* Get the grid */
1615 grid_type *g_ptr = &grid_array[y][x];
1716
1817 /* Assume lit */
@@ -50,7 +49,6 @@ void night_falls(void)
5049 {
5150 for (x = 0; x < cur_wid; x++)
5251 {
53- /* Get the grid */
5452 grid_type *g_ptr = &grid_array[y][x];
5553
5654 /* Feature code (applying "mimic" field) */
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -2403,8 +2403,6 @@ static int next_to_walls_adj(POSITION cy, POSITION cx, bool (*pass_bold)(POSITIO
24032403 static void cave_temp_room_aux(POSITION y, POSITION x, bool only_room, bool (*pass_bold)(POSITION, POSITION))
24042404 {
24052405 grid_type *g_ptr;
2406-
2407- /* Get the grid */
24082406 g_ptr = &grid_array[y][x];
24092407
24102408 /* Avoid infinite recursion */
--- a/src/trap.c
+++ b/src/trap.c
@@ -301,8 +301,6 @@ void hit_trap(bool break_trap)
301301 {
302302 int i, num, dam;
303303 POSITION x = p_ptr->x, y = p_ptr->y;
304-
305- /* Get the grid */
306304 grid_type *g_ptr = &grid_array[y][x];
307305 feature_type *f_ptr = &f_info[g_ptr->feat];
308306 int trap_feat_type = have_flag(f_ptr->flags, FF_TRAP) ? f_ptr->subtype : NOT_TRAP;
--- a/src/wild.c
+++ b/src/wild.c
@@ -566,7 +566,6 @@ void wilderness_gen(void)
566566 {
567567 for (x = 0; x < cur_wid; x++)
568568 {
569- /* Get the grid */
570569 g_ptr = &grid_array[y][x];
571570
572571 if (is_daytime())
@@ -613,7 +612,6 @@ void wilderness_gen(void)
613612 {
614613 for (x = 0; x < cur_wid; x++)
615614 {
616- /* Get the grid */
617615 g_ptr = &grid_array[y][x];
618616
619617 /* Seeing true feature code (ignore mimic) */
@@ -639,7 +637,6 @@ void wilderness_gen(void)
639637 {
640638 for (x = 0; x < cur_wid; x++)
641639 {
642- /* Get the grid */
643640 g_ptr = &grid_array[y][x];
644641
645642 if (cave_have_flag_grid(g_ptr, FF_ENTRANCE))
Show on old repository browser