From 2fcba6f35a0418224067a191bf2700758c608637 Mon Sep 17 00:00:00 2001 From: justgo97 Date: Thu, 29 Aug 2019 15:57:12 +0200 Subject: [PATCH] Disconnected players func_tank fix (#400) for more info visit this thread : https://forums.alliedmods.net/showthread.php?t=317763 --- regamedll/dlls/player.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 62069390..315c7b13 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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();