From e6b192a80d0e47f6f5ff542bc56a69c736365321 Mon Sep 17 00:00:00 2001 From: jeefo Date: Thu, 2 May 2024 20:43:17 +0300 Subject: [PATCH] bot: prevent creature-bots from flashlight usage (ref #563) --- src/botlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index 31e349a..2e23bd9 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -3205,7 +3205,7 @@ void Bot::logic () { checkFall (); // check the darkness - if (cv_check_darkness) { + if (!m_isCreature && cv_check_darkness) { checkDarkness (); }