mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 07:21:10 +00:00
- fixed bad actor use in actCheckDudes.
This commit is contained in:
parent
e88627b72a
commit
da817a234b
1 changed files with 2 additions and 2 deletions
|
@ -6204,10 +6204,10 @@ static void actCheckDudes()
|
||||||
BloodStatIterator it1(kStatDude);
|
BloodStatIterator it1(kStatDude);
|
||||||
while (auto actor2 = it1.Next())
|
while (auto actor2 = it1.Next())
|
||||||
{
|
{
|
||||||
spritetype* pSprite2 = &actor->s();
|
spritetype* pSprite2 = &actor2->s();
|
||||||
if (pSprite2->flags & 32) continue;
|
if (pSprite2->flags & 32) continue;
|
||||||
|
|
||||||
XSPRITE* pXSprite2 = &actor->x();
|
XSPRITE* pXSprite2 = &actor2->x();
|
||||||
|
|
||||||
if ((unsigned int)pXSprite2->health > 0 && IsPlayerSprite(pSprite2))
|
if ((unsigned int)pXSprite2->health > 0 && IsPlayerSprite(pSprite2))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue