mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- use the actor pointer in rxBuckets.
This commit is contained in:
parent
b449e0a43b
commit
e32ac93d96
3 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -304,6 +304,7 @@ void evInit()
|
|||
assert(nCount < kChannelMax);
|
||||
rxBucket[nCount].type = SS_SPRITE;
|
||||
rxBucket[nCount].rxindex = i;
|
||||
rxBucket[nCount].actor = &bloodActors[i];
|
||||
nCount++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ enum {
|
|||
|
||||
struct RXBUCKET
|
||||
{
|
||||
DBloodActor* GetActor() const;
|
||||
DBloodActor* GetActor() const { return actor; }
|
||||
DBloodActor* actor;
|
||||
int rxindex;
|
||||
uint8_t type;
|
||||
|
|
Loading…
Reference in a new issue