bot: remove detection of official csbot

not sure for what it was used before
This commit is contained in:
jeefo 2023-05-06 20:32:49 +03:00
commit cf9817ab10
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 1 additions and 6 deletions

View file

@ -38,7 +38,7 @@ CR_DECLARE_SCOPED_ENUM (GameFlags,
ConditionZero = cr::bit (2), // counter-strike: condition zero
Legacy = cr::bit (3), // counter-strike 1.3-1.5 with/without steam
Mobility = cr::bit (4), // additional flag that bot is running on android (additional flag)
CSBot = cr::bit (5), // additional flag that indicates official cs bots are in game
Unused = cr::bit (5), // not used currently
Metamod = cr::bit (6), // game running under meta\mod
CSDM = cr::bit (7), // csdm mod currently in use
FreeForAll = cr::bit (8), // csdm mod with ffa mode

View file

@ -43,11 +43,6 @@ void Game::precache () {
m_engineWrap.precacheSound ("common/wpn_hudon.wav"); // path add/delete done
m_mapFlags = 0; // reset map type as worldspawn is the first entity spawned
// detect official csbots here
if (!(is (GameFlags::Legacy)) && engfuncs.pfnCVarGetPointer ("bot_stop") != nullptr) {
m_gameFlags |= GameFlags::CSBot;
}
registerCvars (true);
}