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:
parent
ccfbb5479d
commit
c298e607ae
4 changed files with 8 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue