From 06c2243d58e80e9eaf5c7dd30a8dd9161509713f Mon Sep 17 00:00:00 2001 From: jeefo Date: Mon, 27 May 2024 23:19:02 +0300 Subject: [PATCH] fix: flush radio queue if became creature --- src/botlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index b83bf79d..21911f5e 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -966,7 +966,7 @@ void Bot::checkMsgQueue () { const auto state = m_msgQueue.popFront (); // nothing to do? - if (state == BotMsg::None || (state == BotMsg::Radio && game.is (GameFlags::FreeForAll))) { + if (state == BotMsg::None || (state == BotMsg::Radio && (m_isCreature || game.is (GameFlags::FreeForAll)))) { return; } float delayResponseTime = 0.0f;