mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix player taunt frequency (and there was much rejoicing)
This commit is contained in:
parent
979f40f900
commit
aba3e85c8e
1 changed files with 29 additions and 28 deletions
|
@ -1807,17 +1807,17 @@ void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage)
|
|||
}
|
||||
|
||||
short nRun = sprite[nSprite].owner;
|
||||
|
||||
if (nRun <= -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
short nPreCreaturesLeft = nCreaturesLeft;
|
||||
|
||||
runlist_SendMessageToRunRec(nRun, (nSprite2 & 0xFFFF) | 0x80000, nDamage * 4);
|
||||
|
||||
if (nCreaturesLeft <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// is there now one less creature? (has one died)
|
||||
if (nPreCreaturesLeft > nCreaturesLeft)
|
||||
{
|
||||
if (sprite[nSprite2].statnum != 100) {
|
||||
return;
|
||||
}
|
||||
|
@ -1846,4 +1846,5 @@ void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage)
|
|||
nTauntTimer[nPlayer] = RandomSize(3) + 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
END_PS_NS
|
||||
|
|
Loading…
Reference in a new issue