Skip to content

Commit

Permalink
fix: flush radio queue if became creature
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed May 27, 2024
1 parent 54e7eb4 commit 06c2243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/botlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 06c2243

Please sign in to comment.