From 415499a09cb67da55fb7ddaae2cbc7c1ed49bfb5 Mon Sep 17 00:00:00 2001 From: m Date: Thu, 7 Jul 2022 15:50:29 -0500 Subject: [PATCH] remove prints left from testing --- src/client/component/bots.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/client/component/bots.cpp b/src/client/component/bots.cpp index 2db33b02..068410a9 100644 --- a/src/client/component/bots.cpp +++ b/src/client/component/bots.cpp @@ -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()) {