From 5574f0bd745ac593ad8e34318a05cdad57e35b51 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Thu, 11 Jun 2020 08:16:03 -0700 Subject: [PATCH] Duke3d: add player .somethingonplayer check to GREENSLIME, and reset the player's .somethingonplayer to -1 if the player is dead --- source/duke3d/src/actors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 27f86280a..905b39d39 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -4725,10 +4725,11 @@ ACTOR_STATIC void G_MoveActors(void) pSprite->cstat = (playerDist < 1596) ? 0 : 257; - if (pData[0] == -4) //On the player + if (pData[0] == -4 && pPlayer->somethingonplayer == spriteNum) //On the player { if (sprite[pPlayer->i].extra < 1) { + pPlayer->somethingonplayer = -1; pData[0] = 0; goto next_sprite; }