From 6445266adbc4f8a1b1daa003d19741638ee499ae Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Mon, 10 Feb 2020 11:54:45 +0300 Subject: [PATCH] Fix shockroach --- dlls/gearbox/shockroach.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/gearbox/shockroach.cpp b/dlls/gearbox/shockroach.cpp index 4d3bf59a..8704f577 100644 --- a/dlls/gearbox/shockroach.cpp +++ b/dlls/gearbox/shockroach.cpp @@ -163,9 +163,7 @@ void CShockRoach::MonsterThink(void) } if (lifeTime >= gSkillData.sroachLifespan) { - pev->health = -1; - Killed(pev, 0); - return; + TakeDamage(pev, pev, pev->health, DMG_NEVERGIB); } CHeadCrab::MonsterThink();