Fix shockroach

This commit is contained in:
Roman Chistokhodov 2020-02-10 11:54:45 +03:00
parent a7349a5911
commit 6445266adb

View File

@ -163,9 +163,7 @@ void CShockRoach::MonsterThink(void)
} }
if (lifeTime >= gSkillData.sroachLifespan) if (lifeTime >= gSkillData.sroachLifespan)
{ {
pev->health = -1; TakeDamage(pev, pev, pev->health, DMG_NEVERGIB);
Killed(pev, 0);
return;
} }
CHeadCrab::MonsterThink(); CHeadCrab::MonsterThink();