Remove duplicate code

This commit is contained in:
zaCade 2018-10-08 21:51:02 +02:00
parent f99ecfde4a
commit b95606ff40

View File

@ -449,10 +449,7 @@ public void OnEntitySpawned(int entity)
char sBreakable[64]; char sBreakable[64];
Config.GetBreakable(sBreakable, sizeof(sBreakable)); Config.GetBreakable(sBreakable, sizeof(sBreakable));
char sTargetName[64]; if (StrEqual(sBreakable, sTargetname))
GetEntPropString(entity, Prop_Data, "m_iName", sTargetName, sizeof(sTargetName));
if (StrEqual(sBreakable, sTargetName))
HookSingleEntityOutput(entity, "OnHealthChanged", HookCallbackDamagedBoss, false); HookSingleEntityOutput(entity, "OnHealthChanged", HookCallbackDamagedBoss, false);
} }
else if (_Config.IsCounter) else if (_Config.IsCounter)