From cd8775dd28171680f091613443e56dd3b1fc8a54 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 15 Nov 2016 21:55:25 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/actors.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 05cba7c00..cee3b4ed0 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -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);