Rednukem: fix kill counter

# Conflicts:
#	source/rr/src/gameexec.cpp
This commit is contained in:
nukeykt 2020-02-13 06:56:58 +09:00 committed by Christoph Oelckers
parent 1e8e5d3732
commit a604152e39
2 changed files with 2 additions and 2 deletions

View file

@ -3326,7 +3326,7 @@ rr_badguy:
pSprite->cstat |= 257;
if (pSprite->picnum != SHARK)
if (A_CheckSpriteFlags(newSprite, SFLAG_KILLCOUNT))
if (!RR || A_CheckSpriteFlags(newSprite, SFLAG_KILLCOUNT))
g_player[myconnectindex].ps->max_actors_killed++;
}

View file

@ -1834,7 +1834,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
{
// This check does not exist in Duke Nukem.
if ((g_spriteExtra[vm.spriteNum] < 1 || g_spriteExtra[vm.spriteNum] == 128)
&& A_CheckSpriteFlags(vm.spriteNum, SFLAG_KILLCOUNT))
&& (!RR || A_CheckSpriteFlags(vm.spriteNum, SFLAG_KILLCOUNT)))
P_AddKills(pPlayer, *insptr);
}
else P_AddKills(pPlayer, *insptr);