• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision5903e1f1464ed204a2ca6893cadca55cf1286a46 (tree)
Time2013-02-21 20:26:49
Authorhabu <habu@0568...>
Commiterhabu

Log Message

Change location of setting CAVE_KNOWN flag

Location of setting CAVE_KNOWN flag is changed from cave_lite_hack()
and cave_view_hack() to note_spot().
note_spot() is better place than before, and it works well when
playing Ninja.

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -1528,6 +1528,9 @@ void note_spot(int y, int x)
15281528 c_ptr->info |= (CAVE_MARK);
15291529 }
15301530 }
1531+
1532+ /* Memorize terrain of the grid */
1533+ c_ptr->info |= (CAVE_KNOWN);
15311534 }
15321535
15331536
@@ -2540,7 +2543,7 @@ void forget_lite(void)
25402543 {\
25412544 if (!(cave[Y][X].info & (CAVE_LITE))) \
25422545 { \
2543- cave[Y][X].info |= (CAVE_LITE | CAVE_KNOWN); \
2546+ cave[Y][X].info |= (CAVE_LITE); \
25442547 lite_y[lite_n] = (Y); \
25452548 lite_x[lite_n++] = (X); \
25462549 } \
@@ -3358,7 +3361,6 @@ void forget_view(void)
33583361 {\
33593362 if (!((C)->info & (CAVE_VIEW))){\
33603363 (C)->info |= (CAVE_VIEW); \
3361- if ((C)->info & (CAVE_GLOW)) (C)->info |= (CAVE_KNOWN); \
33623364 view_y[view_n] = (Y); \
33633365 view_x[view_n] = (X); \
33643366 view_n++;}\
Show on old repository browser