mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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->busy = nState << 16;
|
||||||
pXSprite->state = nState;
|
pXSprite->state = nState;
|
||||||
evKill(nSprite, 3);
|
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;
|
pXSprite->respawnPending = 3;
|
||||||
evPost(nSprite, 3, gGameOptions.nMonsterRespawnTime, CALLBACK_ID_9);
|
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->busy = nState<<16;
|
||||||
pXSprite->state = nState;
|
pXSprite->state = nState;
|
||||||
evKill(nSprite, 3);
|
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;
|
pXSprite->respawnPending = 3;
|
||||||
evPost(nSprite, 3, gGameOptions.nMonsterRespawnTime, CALLBACK_ID_9);
|
evPost(nSprite, 3, gGameOptions.nMonsterRespawnTime, CALLBACK_ID_9);
|
||||||
|
|
Loading…
Reference in a new issue