Remove duplicate code
This commit is contained in:
parent
f99ecfde4a
commit
b95606ff40
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user