[Bots]: Format code properly (#975)
This commit is contained in:
parent
82662a2088
commit
619cdf39e4
@ -16,7 +16,7 @@ namespace Components
|
|||||||
const Game::dvar_t* Bots::sv_randomBotNames;
|
const Game::dvar_t* Bots::sv_randomBotNames;
|
||||||
const Game::dvar_t* Bots::sv_replaceBots;
|
const Game::dvar_t* Bots::sv_replaceBots;
|
||||||
|
|
||||||
std::size_t Bots::botDataIndex;
|
std::size_t Bots::BotDataIndex;
|
||||||
|
|
||||||
struct BotMovementInfo
|
struct BotMovementInfo
|
||||||
{
|
{
|
||||||
@ -121,8 +121,8 @@ namespace Components
|
|||||||
|
|
||||||
if (!botNames.empty())
|
if (!botNames.empty())
|
||||||
{
|
{
|
||||||
botDataIndex %= botNames.size();
|
BotDataIndex %= botNames.size();
|
||||||
const auto index = botDataIndex++;
|
const auto index = BotDataIndex++;
|
||||||
botName = botNames[index].first;
|
botName = botNames[index].first;
|
||||||
clanName = botNames[index].second;
|
clanName = botNames[index].second;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ namespace Components
|
|||||||
static const Game::dvar_t* sv_randomBotNames;
|
static const Game::dvar_t* sv_randomBotNames;
|
||||||
static const Game::dvar_t* sv_replaceBots;
|
static const Game::dvar_t* sv_replaceBots;
|
||||||
|
|
||||||
static std::size_t botDataIndex;
|
static std::size_t BotDataIndex;
|
||||||
|
|
||||||
static std::vector<botData> LoadBotNames();
|
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);
|
static int BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user