OSDN Git Service

[Fix] 店舗内でデバッグセーブを実行している
authorHabu <habu1010+github@gmail.com>
Sat, 14 Jan 2023 15:54:38 +0000 (00:54 +0900)
committerHabu <habu1010+github@gmail.com>
Sat, 14 Jan 2023 15:54:38 +0000 (00:54 +0900)
通常店舗内ではセーブはできないが、auto_debug_save オプションが ON のとき店舗内に
居るにも関わらずセーブが実行されている。
デバッグ用セーブファイルとはいえ、通常では想定されていないタイミングでのセーブ実行であ
るためおかしな動作の原因となる事も考えられるため、店舗内ではセーブが実行されないように
修正する。

src/io/input-key-requester.cpp

index 4b6f7a7..eef13da 100644 (file)
@@ -76,7 +76,7 @@ void InputKeyRequestor::request_command()
 void InputKeyRequestor::input_command()
 {
     while (true) {
-        if (!macro_running() && !command_new && auto_debug_save && (!inkey_next || *inkey_next == '\0')) {
+        if (!this->shopping && !macro_running() && !command_new && auto_debug_save && (!inkey_next || *inkey_next == '\0')) {
             save_player(this->player_ptr, SaveType::DEBUG);
         }