mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
Duke3d: add player .somethingonplayer check to GREENSLIME, and reset the player's .somethingonplayer to -1 if the player is dead
This commit is contained in:
parent
39b1c3cee9
commit
5574f0bd74
1 changed files with 2 additions and 1 deletions
|
@ -4725,10 +4725,11 @@ ACTOR_STATIC void G_MoveActors(void)
|
||||||
|
|
||||||
pSprite->cstat = (playerDist < 1596) ? 0 : 257;
|
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)
|
if (sprite[pPlayer->i].extra < 1)
|
||||||
{
|
{
|
||||||
|
pPlayer->somethingonplayer = -1;
|
||||||
pData[0] = 0;
|
pData[0] = 0;
|
||||||
goto next_sprite;
|
goto next_sprite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue