bot: remove detection of official csbot
not sure for what it was used before
This commit is contained in:
parent
a616f25b1a
commit
cf9817ab10
2 changed files with 1 additions and 6 deletions
|
|
@ -38,7 +38,7 @@ CR_DECLARE_SCOPED_ENUM (GameFlags,
|
||||||
ConditionZero = cr::bit (2), // counter-strike: condition zero
|
ConditionZero = cr::bit (2), // counter-strike: condition zero
|
||||||
Legacy = cr::bit (3), // counter-strike 1.3-1.5 with/without steam
|
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)
|
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
|
Metamod = cr::bit (6), // game running under meta\mod
|
||||||
CSDM = cr::bit (7), // csdm mod currently in use
|
CSDM = cr::bit (7), // csdm mod currently in use
|
||||||
FreeForAll = cr::bit (8), // csdm mod with ffa mode
|
FreeForAll = cr::bit (8), // csdm mod with ffa mode
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,6 @@ void Game::precache () {
|
||||||
m_engineWrap.precacheSound ("common/wpn_hudon.wav"); // path add/delete done
|
m_engineWrap.precacheSound ("common/wpn_hudon.wav"); // path add/delete done
|
||||||
|
|
||||||
m_mapFlags = 0; // reset map type as worldspawn is the first entity spawned
|
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);
|
registerCvars (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue