Don't draw overhead items during GI animation

This commit is contained in:
aMannus
2025-10-30 10:45:19 +01:00
parent c1f0f2a9b7
commit a5892590c1

View File

@@ -540,6 +540,10 @@ void EnExItem_WaitForObjectRandomized(EnExItem* enExItem, PlayState* play) {
}
void EnItem00_DrawRandomizedItem(EnItem00* enItem00, PlayState* play) {
// Don't draw overhead items in cutscenes so they don't overlap during GI animations.
if (enItem00->actor.params == ITEM00_SOH_GIVE_ITEM_ENTRY && GameInteractor::IsGameplayPaused()) {
return;
}
f32 mtxScale = CVarGetFloat(CVAR_RANDOMIZER_ENHANCEMENT("TimeSavers.SkipGetItemAnimationScale"), 10.0f);
Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);
GetItemEntry randoItem = enItem00->itemEntry;