Skip to content

Commit

Permalink
Rednukem: fix kill counter
Browse files Browse the repository at this point in the history
# Conflicts:
#	source/rr/src/gameexec.cpp
  • Loading branch information
nukeykt authored and coelckers committed Feb 12, 2020
1 parent 1e8e5d3 commit a604152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/rr/src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ int A_Spawn(int spriteNum, int tileNum)
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++;
}

Expand Down
2 changes: 1 addition & 1 deletion source/rr/src/gameexec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a604152

Please sign in to comment.