mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- fixed two bad actor references in Exhumed's radial damage code.
The radial source is passed through pRadialActor, not pObjActor.
This commit is contained in:
parent
00d54fa11a
commit
5bb114ba6e
2 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ void AIGrenade::RadialDamage(RunListEvent* ev)
|
|||
auto pActor = ev->pObjActor;
|
||||
if (!pActor) return;
|
||||
|
||||
if (pActor != ev->pOtherActor && !pActor->nFrame)
|
||||
if (pActor != ev->pRadialActor && !pActor->nFrame)
|
||||
{
|
||||
if (runlist_CheckRadialDamage(pActor) > 280)
|
||||
{
|
||||
|
|
|
@ -1443,7 +1443,7 @@ void AIQueen::RadialDamage(RunListEvent* ev)
|
|||
assert(nQueen >= 0 && nQueen < kMaxQueens);
|
||||
auto pActor = QueenList[nQueen].pActor;
|
||||
auto pSprite = &pActor->s();
|
||||
auto pRadial = &ev->pOtherActor->s();
|
||||
auto pRadial = &ev->pRadialActor->s();
|
||||
|
||||
if (pRadial->statnum != 121 && (pSprite->cstat & 0x101) != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue