refactor(SwitchTeam): remove redundant code lines for bomb removal

This commit is contained in:
Javekson 2023-11-15 20:09:29 +04:00
parent 8fa910c4f7
commit 466d1bbb6d

View File

@ -8428,10 +8428,6 @@ void CBasePlayer::__API_HOOK(SwitchTeam)()
if (m_bHasC4)
{
if (NumAliveTerrorist > 0 && CSPlayer()->RemovePlayerItemEx("weapon_c4", true)) {
m_bHasC4 = false;
pev->body = 0;
SetBombIcon(FALSE);
SetProgressBarTime(0);
CSGameRules()->GiveC4();
}
else {