diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-05-24 18:54:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 18:54:46 -0400 |
| commit | 7cd75e8f7b01a45ca8c72facfd5b4a3c1906c0e1 (patch) | |
| tree | ece493d144cfcb3af860c2af8fa0480491f69706 /src/d/actor/d_a_boss_item.cpp | |
| parent | 4a29f64e6bf5a06a541161638913f51c51d8a633 (diff) | |
Demo matches (#767)
Diffstat (limited to 'src/d/actor/d_a_boss_item.cpp')
| -rw-r--r-- | src/d/actor/d_a_boss_item.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/d/actor/d_a_boss_item.cpp b/src/d/actor/d_a_boss_item.cpp index aec37c92..8a290923 100644 --- a/src/d/actor/d_a_boss_item.cpp +++ b/src/d/actor/d_a_boss_item.cpp @@ -22,17 +22,16 @@ static BOOL daBossItem_Delete(bossitem_class* i_this) { /* 00000088-00000128 .text daBossItem_Create__FP10fopAc_ac_c */ static cPhs_State daBossItem_Create(fopAc_ac_c* i_this) { - bossitem_class* bItem = static_cast<bossitem_class*>(i_this); + bossitem_class* a_this = (bossitem_class*)i_this; + fopAcM_SetupActor(i_this, bossitem_class); - fopAcM_SetupActor(bItem, bossitem_class); - - int stageNo = bItem->base.mParameters & 0xFF; + int stageNo = daBossItem_prm::getStage(a_this); BOOL isStageBossDead = dComIfGs_isStageBossEnemy(stageNo); if (isStageBossDead && !dComIfGs_isStageLife(stageNo)) { fopAcM_createItemForBoss( - &bItem->current.pos, 1, bItem->current.roomNo, - &bItem->current.angle, NULL, 1 + &i_this->current.pos, 1, fopAcM_GetRoomNo(i_this), + &i_this->current.angle, NULL, 1 ); } |
