mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
- Blood: don't crash when cultists accidentally target themselves.
This commit is contained in:
parent
785c7d4ceb
commit
156369ac8a
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ static void cultThinkChase(DBloodActor* actor)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int nDist = approxDist(dx, dy);
|
int nDist = approxDist(dx, dy);
|
||||||
if (nDist <= pDudeInfo->seeDist)
|
if (nDist > 0 && nDist <= pDudeInfo->seeDist)
|
||||||
{
|
{
|
||||||
int nDeltaAngle = ((getangle(dx, dy) + 1024 - pSprite->ang) & 2047) - 1024;
|
int nDeltaAngle = ((getangle(dx, dy) + 1024 - pSprite->ang) & 2047) - 1024;
|
||||||
int height = (pDudeInfo->eyeHeight * pSprite->yrepeat) << 2;
|
int height = (pDudeInfo->eyeHeight * pSprite->yrepeat) << 2;
|
||||||
|
|
Loading…
Reference in a new issue