fix: do not update fakeclient bit on every frame

cfg: allow bots to have name with at least one character
This commit is contained in:
jeefo 2024-02-19 23:16:03 +03:00
commit c298e607ae
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
4 changed files with 8 additions and 9 deletions

View file

@ -747,7 +747,7 @@ BotName *BotConfig::pickBotName () {
for (size_t i = 0; i < m_botNames.length () * 2; ++i) {
auto bn = &m_botNames.random ();
if (bn->name.length () < 3 || bn->usedBy != -1) {
if (bn->name.empty () || bn->usedBy != -1) {
continue;
}
return bn;