fix: players play time got replaced with bots play time.
fix: crlib: fixed clang-analyzer warnings. build: removed predefined optimization flags in debug builds.
This commit is contained in:
parent
5170bb9bcf
commit
f40ca59700
11 changed files with 44 additions and 24 deletions
|
|
@ -757,11 +757,11 @@ void BotManager::listBots () {
|
|||
ctrl.msg ("%d bots", m_bots.length ());
|
||||
}
|
||||
|
||||
float BotManager::getConnectTime (int botId, float original) {
|
||||
float BotManager::getConnectTime (StringRef name, float original) {
|
||||
// this function get's fake bot player time.
|
||||
|
||||
for (const auto &bot : m_bots) {
|
||||
if (bot->entindex () == botId) {
|
||||
if (name == bot->pev->netname.chars ()) {
|
||||
return bot->getConnectionTime ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue