Skip to content

Commit

Permalink
easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
artvin01 committed Oct 12, 2024
1 parent 4c24bf2 commit ec56c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/zombie_riot/npc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -930,14 +930,14 @@ void NPCDeath(int entity)
}
for(int targ; targ<i_MaxcountNpcTotal; targ++)
{
int baseboss_index = EntRefToEntIndex(i_ObjectsNpcsTotal[targ]);
if (IsValidEntity(baseboss_index) && !b_NpcHasDied[baseboss_index])
int DeathNoticer = EntRefToEntIndex(i_ObjectsNpcsTotal[targ]);
if (IsValidEntity(DeathNoticer) && !b_NpcHasDied[DeathNoticer])
{
Function func = func_NPCDeathForward[baseboss_index];
Function func = func_NPCDeathForward[DeathNoticer];
if(func && func != INVALID_FUNCTION)
{
Call_StartFunction(null, func);
Call_PushCell(baseboss_index);
Call_PushCell(DeathNoticer);
Call_PushCell(entity);
Call_Finish();
}
Expand Down

0 comments on commit ec56c09

Please sign in to comment.