[Bots]: Format code properly (#975)

This commit is contained in:
Edo 2023-04-26 14:57:54 +01:00 committed by GitHub
parent 82662a2088
commit 619cdf39e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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<botData> LoadBotNames();
static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);