OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13e282f
)
[fix] #41489 明るいはずの場所でも灯りがない判定になっている
author
Habu
<habu@users.osdn.me>
Sat, 6 Feb 2021 09:55:38 +0000
(18:55 +0900)
committer
Habu
<habu@users.osdn.me>
Sat, 6 Feb 2021 09:55:38 +0000
(18:55 +0900)
デバッグ用自動セーブをONにしている時に現象が発生。
セーブする時に、ダンジョンの明かりと視界の情報フラグが
一旦リセットされるのが原因。
同時に情報更新用のフラグが立てられているので、
自動セーブ後にupdate_creature()を呼んで改めて
明かりと視界の情報を更新するようにする。
src/io/input-key-requester.c
patch
|
blob
|
history
diff --git
a/src/io/input-key-requester.c
b/src/io/input-key-requester.c
index
8540a88
..
8456b17
100644
(file)
--- a/
src/io/input-key-requester.c
+++ b/
src/io/input-key-requester.c
@@
-203,8
+203,10
@@
void request_command(player_type *player_ptr, int shopping)
use_menu = FALSE;
while (TRUE) {
- if (!macro_running() && !command_new && auto_debug_save)
+ if (!macro_running() && !command_new && auto_debug_save)
{
save_player(player_ptr, SAVE_TYPE_DEBUG);
+ update_creature(player_ptr);
+ }
if (command_new) {
msg_erase();