- use the actor pointer in rxBuckets.

This commit is contained in:
Christoph Oelckers 2021-09-01 20:23:32 +02:00
parent b449e0a43b
commit e32ac93d96
3 changed files with 2 additions and 5 deletions

View file

@ -7434,8 +7434,4 @@ void aiSetTarget_(XSPRITE* pXSprite, int x, int y, int z)
aiSetTarget(&bloodActors[pXSprite->reference], x, y, z);
}
DBloodActor* RXBUCKET::GetActor() const { return &bloodActors[rxindex]; }
END_BLD_NS

View file

@ -304,6 +304,7 @@ void evInit()
assert(nCount < kChannelMax);
rxBucket[nCount].type = SS_SPRITE;
rxBucket[nCount].rxindex = i;
rxBucket[nCount].actor = &bloodActors[i];
nCount++;
}
}

View file

@ -73,7 +73,7 @@ enum {
struct RXBUCKET
{
DBloodActor* GetActor() const;
DBloodActor* GetActor() const { return actor; }
DBloodActor* actor;
int rxindex;
uint8_t type;