fix: bots are not killable after the changelevel. fixes #143
This commit is contained in:
parent
2d3078f851
commit
2580c9478c
2 changed files with 2 additions and 1 deletions
|
|
@ -2977,7 +2977,7 @@ void Bot::update () {
|
|||
if (cv_tkpunish.int_ () != 2 || util.isFakeClient (game.entityOfIndex (m_voteKickIndex))) {
|
||||
return;
|
||||
}
|
||||
edict_t *killer = game.entityOfIndex (m_lastVoteKick);
|
||||
auto killer = game.entityOfIndex (m_lastVoteKick);
|
||||
|
||||
++killer->v.frags;
|
||||
MDLL_ClientKill (killer);
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ void BotManager::createKillerEntity () {
|
|||
void BotManager::destroyKillerEntity () {
|
||||
if (!game.isNullEntity (m_killerEntity)) {
|
||||
engfuncs.pfnRemoveEntity (m_killerEntity);
|
||||
m_killerEntity = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue