- Duke: fixed skill filter handling for CON defined enemies.

This commit is contained in:
Christoph Oelckers 2023-07-17 00:32:27 +02:00
parent 0380ef3b80
commit ce34ef2921

View file

@ -496,6 +496,7 @@ void GameInterface::FinalizeSetup()
// do not enable KILLCOUNT if it the base is a non-counting badguy. This is needed for RR's animals. // do not enable KILLCOUNT if it the base is a non-counting badguy. This is needed for RR's animals.
if (check == EDukeFlags1::FromInt(SFLAG_BADGUY)) fb &= ~SFLAG_KILLCOUNT; if (check == EDukeFlags1::FromInt(SFLAG_BADGUY)) fb &= ~SFLAG_KILLCOUNT;
def->flags1 = (def->flags1 & ~fb) | (actinf.enemyflags & fb); def->flags1 = (def->flags1 & ~fb) | (actinf.enemyflags & fb);
if (def->flags1 & SFLAG_KILLCOUNT) def->flags1 |= SFLAG_SKILLFILTER;
} }
} }