fix: flush radio queue if became creature

This commit is contained in:
jeefo 2024-05-27 23:19:02 +03:00
commit 06c2243d58
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -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;