mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
killtarget monsters update killcounter correctly
This commit is contained in:
parent
e4a467e9c9
commit
cc6bf7dd5f
1 changed files with 7 additions and 0 deletions
|
@ -330,6 +330,13 @@ G_UseTargets(edict_t *ent, edict_t *activator)
|
|||
}
|
||||
}
|
||||
|
||||
/* correct killcounter if a living monster gets killtargeted */
|
||||
if ((t->monsterinfo.checkattack || strcmp (t->classname, "turret_driver") == 0) &&
|
||||
!(t->monsterinfo.aiflags & (AI_GOOD_GUY|AI_DO_NOT_COUNT)) && t->deadflag != DEAD_DEAD)
|
||||
{
|
||||
level.killed_monsters++;
|
||||
}
|
||||
|
||||
G_FreeEdict(t);
|
||||
|
||||
if (!ent->inuse)
|
||||
|
|
Loading…
Reference in a new issue