Fixed ending texture

This commit is contained in:
KiritoDv 2024-05-23 00:18:14 -06:00 committed by Sonic Dreamcaster
parent a184cdb76a
commit deabc05047
2 changed files with 6 additions and 14 deletions

View File

@ -81,16 +81,10 @@ void Ending_80187520(s32 arg0) {
switch (arg0) {
case 0:
for (j = 0, i = 0; i < 67; j += 316 * 4, i++) {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingAwardBack + j, 316, 4, 0.0f, 4 * i, 1.0f, 1.0f);
}
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingAwardBack + j, 316, 3, 0.0f, 4 * i, 1.0f, 1.0f);
TextureRect_RGBA16(&gMasterDisp, gEndingAwardBack, 316, 270, 0.0f, 0.0f, 1.0f, 1.0f);
break;
case 1:
for (j = 0, i = 0; i < 60; j += 316 * 4, i++) {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingAwardFront + j, 316, 4, 0.0f, 4 * i, 1.0f, 1.0f);
}
TextureRect_RGBA16(&gMasterDisp, gEndingAwardFront, 316, 240, 0.0f, 0.0f, 1.0f, 1.0f);
break;
}
}

View File

@ -156,12 +156,10 @@ void Ending_8018D638(u32 arg0, AssetInfo* asset) {
gDPSetPrimColor(gMasterDisp++, 0, 0, 255, 255, 255, 255);
if (gExpertMode != 0) {
for (i = 0; i < 240; i += 4) {
if (gVenomHardClear == 0) {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingNormalReward + 316 * i, 316, 4, 0.0f, i, 1.0f, 1.0f);
} else {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingExpertReward + 316 * i, 316, 4, 0.0f, i, 1.0f, 1.0f);
}
if (gVenomHardClear == 0) {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingNormalReward, 316, 240, 0.0f, 0.0f, 1.0f, 1.0f);
} else {
Lib_TextureRect_RGBA16(&gMasterDisp, gEndingExpertReward, 316, 240, 0.0f, 0.0f, 1.0f, 1.0f);
}
} else {
D_ending_80192E70 = 7200;