Commit 6335a9a2 authored by Richard Gobeille's avatar Richard Gobeille

Duke3d: add player .somethingonplayer check to GREENSLIME, and reset the...

Duke3d: add player .somethingonplayer check to GREENSLIME, and reset the player's .somethingonplayer to -1 if the player is dead
parent 58aa447e
......@@ -4740,10 +4740,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment