From 619cdf39e478c666a4ca7ccca594bda69cf7671c Mon Sep 17 00:00:00 2001 From: Edo Date: Wed, 26 Apr 2023 14:57:54 +0100 Subject: [PATCH] [Bots]: Format code properly (#975) --- src/Components/Modules/Bots.cpp | 6 +++--- src/Components/Modules/Bots.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Modules/Bots.cpp b/src/Components/Modules/Bots.cpp index 70fc6efe..dcb26b50 100644 --- a/src/Components/Modules/Bots.cpp +++ b/src/Components/Modules/Bots.cpp @@ -16,7 +16,7 @@ namespace Components const Game::dvar_t* Bots::sv_randomBotNames; const Game::dvar_t* Bots::sv_replaceBots; - std::size_t Bots::botDataIndex; + std::size_t Bots::BotDataIndex; struct BotMovementInfo { @@ -121,8 +121,8 @@ namespace Components if (!botNames.empty()) { - botDataIndex %= botNames.size(); - const auto index = botDataIndex++; + BotDataIndex %= botNames.size(); + const auto index = BotDataIndex++; botName = botNames[index].first; clanName = botNames[index].second; } diff --git a/src/Components/Modules/Bots.hpp b/src/Components/Modules/Bots.hpp index b7cf2315..c97b2d26 100644 --- a/src/Components/Modules/Bots.hpp +++ b/src/Components/Modules/Bots.hpp @@ -15,7 +15,7 @@ namespace Components static const Game::dvar_t* sv_randomBotNames; static const Game::dvar_t* sv_replaceBots; - static std::size_t botDataIndex; + static std::size_t BotDataIndex; static std::vector LoadBotNames(); static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);