mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- playerQavSceneProcess handled for rxBuckets
This commit is contained in:
parent
db9d4efdc9
commit
40a8cd7fa3
1 changed files with 7 additions and 6 deletions
|
@ -6185,7 +6185,8 @@ QAV* playerQavSceneLoad(int qavId) {
|
|||
|
||||
void playerQavSceneProcess(PLAYER* pPlayer, QAVSCENE* pQavScene) {
|
||||
int nIndex = pQavScene->index;
|
||||
if (xspriRangeIsFine(sprite[nIndex].extra)) {
|
||||
auto qavactor = &bloodActors[nIndex];
|
||||
if (qavactor->hasX()) {
|
||||
|
||||
XSPRITE* pXSprite = &xsprite[sprite[nIndex].extra];
|
||||
if (pXSprite->waitTime > 0 && --pXSprite->sysData1 <= 0) {
|
||||
|
@ -6195,9 +6196,9 @@ void playerQavSceneProcess(PLAYER* pPlayer, QAVSCENE* pQavScene) {
|
|||
for (int i = bucketHead[pXSprite->txID]; i < bucketHead[pXSprite->txID + 1]; i++) {
|
||||
if (rxBucket[i].type == OBJ_SPRITE) {
|
||||
|
||||
spritetype* pSpr = &sprite[rxBucket[i].rxindex];
|
||||
if (pSpr->index == nIndex || !xspriRangeIsFine(pSpr->extra))
|
||||
continue;
|
||||
auto rxactor = rxBucket[i].GetActor();
|
||||
if (!rxactor || !rxactor->hasX() || rxactor == qavactor) continue;
|
||||
spritetype* pSpr = &rxactor->s();
|
||||
|
||||
pXSpr = &xsprite[pSpr->extra];
|
||||
if (pSpr->type == kModernPlayerControl && pXSpr->command == 67) {
|
||||
|
@ -6205,10 +6206,10 @@ void playerQavSceneProcess(PLAYER* pPlayer, QAVSCENE* pQavScene) {
|
|||
else trPlayerCtrlStartScene(pXSpr, pPlayer, true);
|
||||
return;
|
||||
}
|
||||
nnExtTriggerObject(rxBucket[i].type, rxactor->s().index, pXSprite->command);
|
||||
|
||||
}
|
||||
|
||||
nnExtTriggerObject(rxBucket[i].type, rxBucket[i].rxindex, pXSprite->command);
|
||||
else nnExtTriggerObject(rxBucket[i].type, rxBucket[i].rxindex, pXSprite->command);
|
||||
|
||||
}
|
||||
} //else {
|
||||
|
|
Loading…
Reference in a new issue