Fixes issue where freezing GREENSLIME repeatedly would increase the player's kill counter by one each time

git-svn-id: https://svn.eduke32.com/eduke32@5937 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-11-15 21:55:25 +00:00
parent 6e94f29ee2
commit cd8775dd28

View file

@ -4204,6 +4204,8 @@ ACTOR_STATIC void G_MoveActors(void)
if (damageTile == FREEZEBLAST)
goto next_sprite;
pPlayer->actors_killed++;
for (bssize_t j = 16; j >= 0; --j)
{
int32_t newSprite = A_InsertSprite(SECT(spriteNum), SX(spriteNum), SY(spriteNum), SZ(spriteNum),
@ -4333,8 +4335,6 @@ ACTOR_STATIC void G_MoveActors(void)
{
A_PlaySound(SLIM_DYING,spriteNum);
pPlayer->actors_killed++;
if (pPlayer->somethingonplayer == spriteNum)
pPlayer->somethingonplayer = -1;
@ -4346,6 +4346,8 @@ ACTOR_STATIC void G_MoveActors(void)
goto next_sprite;
}
pPlayer->actors_killed++;
if ((krand()&255) < 32)
{
int const j = A_Spawn(spriteNum,BLOODPOOL);