Skip to content

Commit

Permalink
Fix bot_kill command (killed already dead bots) (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha authored Jul 8, 2024
1 parent a94c7bd commit 8005dd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions regamedll/dlls/bot/cs_bot_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8005dd9

Please sign in to comment.