diff options
| author | Christopher Leggett <chris@leggett.dev> | 2023-12-30 12:10:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-30 12:10:50 -0500 |
| commit | c9907ed5fc823a31394730ae41b3bc5f5ad4086d (patch) | |
| tree | 68af4fa4757137dd174c746c2cf8b8161364b38e /soh/src/code | |
| parent | dbb1e60734f320a58330d022904296c4010fc498 (diff) | |
Allows rendering custom models as Ice Traps in GetItem Animations. (#3760)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_player_lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/soh/src/code/z_player_lib.c b/soh/src/code/z_player_lib.c index b9a66c90e..9df23f794 100644 --- a/soh/src/code/z_player_lib.c +++ b/soh/src/code/z_player_lib.c @@ -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); |
