Fix ending not playing after first playthrough

This commit is contained in:
Sonic Dreamcaster
2025-05-24 04:08:44 -03:00
parent f5c813d976
commit a61e0dd9e9
+7 -2
View File
@@ -1027,9 +1027,8 @@ void Ending_8018A8FC(void) {
void Ending_Main(void) {
gCsFrameCount++;
gGameFrameCount++;
switch (D_ending_80196D00) {
case 0:
case 0: // Ending Init
gRadioState = 0;
gGameFrameCount = 0;
gSceneSetup = 0;
@@ -1037,6 +1036,12 @@ void Ending_Main(void) {
gCsCamAtX = gCsCamAtY = 0.0f;
gCsCamAtZ = -100.0f;
D_ending_80196D00 = 1;
// @port Bugfix:
// In the original game, this variable is set zero when the overlay is reloaded.
// Since we don't use overlays, the absence of this counter reset causes the ending not to play
// after a the first playthrough.
D_ending_80192E70 = 0;
break;
case 1: