mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Rednukem: fix kill counter
# Conflicts: # source/rr/src/gameexec.cpp
This commit is contained in:
parent
1e8e5d3732
commit
a604152e39
2 changed files with 2 additions and 2 deletions
|
@ -3326,7 +3326,7 @@ rr_badguy:
|
||||||
pSprite->cstat |= 257;
|
pSprite->cstat |= 257;
|
||||||
|
|
||||||
if (pSprite->picnum != SHARK)
|
if (pSprite->picnum != SHARK)
|
||||||
if (A_CheckSpriteFlags(newSprite, SFLAG_KILLCOUNT))
|
if (!RR || A_CheckSpriteFlags(newSprite, SFLAG_KILLCOUNT))
|
||||||
g_player[myconnectindex].ps->max_actors_killed++;
|
g_player[myconnectindex].ps->max_actors_killed++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1834,7 +1834,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
|
||||||
{
|
{
|
||||||
// This check does not exist in Duke Nukem.
|
// This check does not exist in Duke Nukem.
|
||||||
if ((g_spriteExtra[vm.spriteNum] < 1 || g_spriteExtra[vm.spriteNum] == 128)
|
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);
|
P_AddKills(pPlayer, *insptr);
|
||||||
}
|
}
|
||||||
else P_AddKills(pPlayer, *insptr);
|
else P_AddKills(pPlayer, *insptr);
|
||||||
|
|
Loading…
Reference in a new issue