Disconnected players func_tank fix (#400)

for more info visit this thread : https://forums.alliedmods.net/showthread.php?t=317763
This commit is contained in:
justgo97 2019-08-29 15:57:12 +02:00 committed by Dmitry Novikov
parent 80e8730187
commit 2fcba6f35a

View File

@ -1496,6 +1496,14 @@ void CBasePlayer::RemoveAllItems(BOOL removeSuit)
bool bKillProgBar = false;
int i;
#ifdef REGAMEDLL_FIXES
if (m_pTank)
{
m_pTank->Use(this, this, USE_OFF, 0);
m_pTank = nullptr;
}
#endif
if (m_bHasDefuser)
{
RemoveDefuser();