From: Deskull Date: Tue, 18 Sep 2018 11:14:17 +0000 (+0900) Subject: [Fix] #33232 cheat_sight保存実装。 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ef404f991d1b5d973a30fa74fdcb8a3a885c8d4f;p=hengband%2Fhengband.git [Fix] #33232 cheat_sight保存実装。 Implement cheat_sight saving. --- diff --git a/src/load.c b/src/load.c index 76d8e2a35..0ce43cb8c 100644 --- a/src/load.c +++ b/src/load.c @@ -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); diff --git a/src/save.c b/src/save.c index e2f4d19c9..384b23406 100644 --- a/src/save.c +++ b/src/save.c @@ -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;