変愚蛮怒のメインリポジトリです
Revision | 5903e1f1464ed204a2ca6893cadca55cf1286a46 (tree) |
---|---|
Time | 2013-02-21 20:26:49 |
Author | habu <habu@0568...> |
Commiter | habu |
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.
@@ -1528,6 +1528,9 @@ void note_spot(int y, int x) | ||
1528 | 1528 | c_ptr->info |= (CAVE_MARK); |
1529 | 1529 | } |
1530 | 1530 | } |
1531 | + | |
1532 | + /* Memorize terrain of the grid */ | |
1533 | + c_ptr->info |= (CAVE_KNOWN); | |
1531 | 1534 | } |
1532 | 1535 | |
1533 | 1536 |
@@ -2540,7 +2543,7 @@ void forget_lite(void) | ||
2540 | 2543 | {\ |
2541 | 2544 | if (!(cave[Y][X].info & (CAVE_LITE))) \ |
2542 | 2545 | { \ |
2543 | - cave[Y][X].info |= (CAVE_LITE | CAVE_KNOWN); \ | |
2546 | + cave[Y][X].info |= (CAVE_LITE); \ | |
2544 | 2547 | lite_y[lite_n] = (Y); \ |
2545 | 2548 | lite_x[lite_n++] = (X); \ |
2546 | 2549 | } \ |
@@ -3358,7 +3361,6 @@ void forget_view(void) | ||
3358 | 3361 | {\ |
3359 | 3362 | if (!((C)->info & (CAVE_VIEW))){\ |
3360 | 3363 | (C)->info |= (CAVE_VIEW); \ |
3361 | - if ((C)->info & (CAVE_GLOW)) (C)->info |= (CAVE_KNOWN); \ | |
3362 | 3364 | view_y[view_n] = (Y); \ |
3363 | 3365 | view_x[view_n] = (X); \ |
3364 | 3366 | view_n++;}\ |