From b95606ff403f6155ff6fb5d0ce045877c01bf472 Mon Sep 17 00:00:00 2001 From: zaCade Date: Mon, 8 Oct 2018 21:51:02 +0200 Subject: [PATCH] Remove duplicate code --- BossHP/scripting/BossHP.sp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BossHP/scripting/BossHP.sp b/BossHP/scripting/BossHP.sp index a8749cac..ce708637 100644 --- a/BossHP/scripting/BossHP.sp +++ b/BossHP/scripting/BossHP.sp @@ -449,10 +449,7 @@ public void OnEntitySpawned(int entity) char sBreakable[64]; Config.GetBreakable(sBreakable, sizeof(sBreakable)); - char sTargetName[64]; - GetEntPropString(entity, Prop_Data, "m_iName", sTargetName, sizeof(sTargetName)); - - if (StrEqual(sBreakable, sTargetName)) + if (StrEqual(sBreakable, sTargetname)) HookSingleEntityOutput(entity, "OnHealthChanged", HookCallbackDamagedBoss, false); } else if (_Config.IsCounter)