Sector Y Intro Cutscene white flash fix
Some checks failed
GenerateBuilds / generate-port-o2r (push) Has been cancelled
GenerateBuilds / build-macos (push) Has been cancelled
GenerateBuilds / build-linux (push) Has been cancelled
GenerateBuilds / build-switch (push) Has been cancelled
GenerateBuilds / build-windows (push) Has been cancelled

This commit is contained in:
Sonic Dreamcaster 2025-04-01 01:15:57 -03:00
parent 035a0c08fa
commit 838d5521b7

View file

@ -2775,6 +2775,10 @@ void ActorCutscene_Draw(ActorCutscene* this) {
break; break;
case ACTOR_CS_37: case ACTOR_CS_37:
// Fixes the white flash on the right side of the screen during the Sector Y Intro Cutscene.
if ((gCurrentLevel == LEVEL_SECTOR_Y) && (gCsFrameCount == 350) && (gPlayer[0].csState == 2)) {
break;
}
RCP_SetupDL_49(); RCP_SetupDL_49();
gDPSetPrimColor(gMasterDisp++, 0, 0, this->iwork[0], this->iwork[1], this->iwork[2], this->iwork[3]); gDPSetPrimColor(gMasterDisp++, 0, 0, this->iwork[0], this->iwork[1], this->iwork[2], this->iwork[3]);
gDPSetEnvColor(gMasterDisp++, this->iwork[4], this->iwork[5], this->iwork[6], this->iwork[7]); gDPSetEnvColor(gMasterDisp++, this->iwork[4], this->iwork[5], this->iwork[6], this->iwork[7]);