OSDN Git Service

[fix] 探索モード中に探索コマンドを実行するとその場に留まるより損をする #680
authorHabu <habu1010+github@gmail.com>
Thu, 1 Apr 2021 15:31:28 +0000 (00:31 +0900)
committerHabu <habu1010+github@gmail.com>
Thu, 1 Apr 2021 15:31:28 +0000 (00:31 +0900)
探索コマンドにおいても、探索モードでは追加の探索処理を実行する。

src/cmd-action/cmd-others.cpp

index 4e8a813..43061b0 100644 (file)
@@ -50,6 +50,9 @@ void do_cmd_search(player_type *creature_ptr)
 
     take_turn(creature_ptr, 100);
     search(creature_ptr);
+
+    if (creature_ptr->action == ACTION_SEARCH)
+        search(creature_ptr);
 }
 
 static bool exe_alter(player_type *creature_ptr)