OSDN Git Service

[Fix] #33232 cheat_sight保存実装。
authorDeskull <deskull@users.sourceforge.jp>
Tue, 18 Sep 2018 11:14:17 +0000 (20:14 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 18 Sep 2018 11:14:17 +0000 (20:14 +0900)
Implement cheat_sight saving.

src/load.c
src/save.c

index 76d8e2a..0ce43cb 100644 (file)
@@ -1525,6 +1525,7 @@ static void rd_options(void)
        cheat_save = (c & 0x4000) ? TRUE : FALSE;
        cheat_diary_output = (c & 0x8000) ? TRUE : FALSE;
        cheat_turn = (c & 0x0080) ? TRUE : FALSE;
+       cheat_sight = (c & 0x0040) ? TRUE : FALSE;
 
        rd_byte((byte *)&autosave_l);
        rd_byte((byte *)&autosave_t);
index e2f4d19..384b234 100644 (file)
@@ -476,6 +476,7 @@ static void wr_options(void)
 
        if (p_ptr->wizard) c |= 0x0002;
 
+       if (cheat_sight) c |= 0x0040;
        if (cheat_turn) c |= 0x0080;
 
        if (cheat_peek) c |= 0x0100;