Allows rendering custom models as Ice Traps in GetItem Animations. (#3760)

This commit is contained in:
Christopher Leggett
2023-12-30 12:10:50 -05:00
committed by GitHub
parent dbb1e60734
commit c9907ed5fc
4 changed files with 15 additions and 11 deletions

View File

@@ -1508,7 +1508,11 @@ void Player_DrawGetItemIceTrap(PlayState* play, Player* this, Vec3f* refPos, s32
Matrix_RotateZYX(0, play->gameplayFrames * 1000, 0, MTXMODE_APPLY);
Matrix_Scale(0.2f, 0.2f, 0.2f, MTXMODE_APPLY);
// Draw fake item model.
GetItem_Draw(play, drawIdPlusOne - 1);
if (this->getItemEntry.drawFunc != NULL) {
this->getItemEntry.drawFunc(play, &this->getItemEntry);
} else {
GetItem_Draw(play, drawIdPlusOne - 1);
}
}
CLOSE_DISPS(play->state.gfxCtx);