Fix bot_kill command (killed already dead bots) (#974)

This commit is contained in:
Vaqtincha 2024-07-08 22:53:21 +05:00 committed by GitHub
parent a94c7bd728
commit 8005dd9ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -408,6 +408,11 @@ void CCSBotManager::ServerCommand(const char *pcmd)
if (FStrEq(name, ""))
continue;
#ifdef REGAMEDLL_FIXES
if (pPlayer->pev->deadflag != DEAD_NO)
continue;
#endif
if (pPlayer->IsBot())
{
CCSBot *pBot = static_cast<CCSBot *>(pPlayer);