remove prints left from testing

This commit is contained in:
m 2022-07-07 15:50:29 -05:00 committed by GitHub
parent 8503fc7223
commit 415499a09c

View File

@ -82,7 +82,6 @@ namespace bots
std::string bots_content;
if (!utils::io::read_file(bots_txt, &bots_content))
{
console::error(utils::string::va("%s was not found.\n", bots_txt));
return;
}
@ -90,9 +89,6 @@ namespace bots
for (auto& name : names)
{
name = utils::string::replace(name, "\r", "");
#ifdef DEBUG
console::info(utils::string::va("Loading name '%s' for bot names...\n", name.data()));
#endif
if (!name.empty())
{
bot_names.emplace_back(name);
@ -100,19 +96,15 @@ namespace bots
}
}
static size_t bot_id = 0;
const char* get_random_bot_name()
{
static size_t bot_id = 0;
if (bot_names.empty())
{
load_bot_data();
}
#ifdef DEBUG
console::info(utils::string::va("Bot ID is %d\n", bot_id));
#endif
// only use bot names once, no dupes in names
if (!bot_names.empty() && bot_id < bot_names.size())
{