mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
Fix enemy respawning. Verified in disassembly
This commit is contained in:
parent
0d2567a808
commit
c00ff59579
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ char SetSpriteState(int nSprite, XSPRITE* pXSprite, int nState)
|
|||
pXSprite->busy = nState << 16;
|
||||
pXSprite->state = nState;
|
||||
evKill(nSprite, 3);
|
||||
if ((sprite[nSprite].hitag & 16) != 0 && sprite[nSprite].type >= kDudeBase && sprite[nSprite].type < kDudeMax)
|
||||
if ((sprite[nSprite].hitag & 16) != 0 && sprite[nSprite].zvel >= kDudeBase && sprite[nSprite].zvel < kDudeMax)
|
||||
{
|
||||
pXSprite->respawnPending = 3;
|
||||
evPost(nSprite, 3, gGameOptions.nMonsterRespawnTime, CALLBACK_ID_9);
|
||||
|
@ -115,7 +115,7 @@ char modernTypeSetSpriteState(int nSprite, XSPRITE *pXSprite, int nState)
|
|||
pXSprite->busy = nState<<16;
|
||||
pXSprite->state = nState;
|
||||
evKill(nSprite, 3);
|
||||
if ((sprite[nSprite].hitag & 16) != 0 && sprite[nSprite].type >= kDudeBase && sprite[nSprite].type < kDudeMax)
|
||||
if ((sprite[nSprite].hitag & 16) != 0 && sprite[nSprite].zvel >= kDudeBase && sprite[nSprite].zvel < kDudeMax)
|
||||
{
|
||||
pXSprite->respawnPending = 3;
|
||||
evPost(nSprite, 3, gGameOptions.nMonsterRespawnTime, CALLBACK_ID_9);
|
||||
|
|
Loading…
Reference in a new issue