Skip to content

Commit 1f14108

Browse files
committed
Restore beta bomb explosion
1 parent 964bc59 commit 1f14108

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/engine/fox_beam.c

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,14 @@ void PlayerShot_DrawShot(PlayerShot* shot) {
13101310
Matrix_SetGfxMtx(&gMasterDisp);
13111311
gSPDisplayList(gMasterDisp++, aOrbDL);
13121312
} else {
1313-
Matrix_Scale(gGfxMatrix, shot->scale, shot->scale, shot->scale, MTXF_APPLY);
1313+
1314+
if (CVarGetInteger("gRestoreBetaBombExplosion", 0) != 1) {
1315+
Matrix_Scale(gGfxMatrix, shot->scale, shot->scale, shot->scale, MTXF_APPLY);
1316+
} else {
1317+
Matrix_Scale(gGfxMatrix, shot->scale / 1.5f, shot->scale / 1.5f, shot->scale / 1.5f,
1318+
MTXF_APPLY);
1319+
}
1320+
13141321
Matrix_SetGfxMtx(&gMasterDisp);
13151322
if (gVersusMode) {
13161323
RCP_SetupDL_49();
@@ -1333,7 +1340,12 @@ void PlayerShot_DrawShot(PlayerShot* shot) {
13331340
RCP_SetupDL_64_2();
13341341
gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, shot->unk_58);
13351342
}
1336-
gSPDisplayList(gMasterDisp++, D_1031EC0);
1343+
1344+
if (CVarGetInteger("gRestoreBetaBombExplosion", 0) != 1) {
1345+
gSPDisplayList(gMasterDisp++, D_1031EC0);
1346+
} else {
1347+
gSPDisplayList(gMasterDisp++, D_102FF90);
1348+
}
13371349
}
13381350
break;
13391351
case PLAYERSHOT_TANK:

src/port/ui/ImguiUI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ void DrawEnhancementsMenu() {
606606
.tooltip = "Restores the missile cutscene bug present in JP 1.0"
607607
});
608608

609+
UIWidgets::CVarCheckbox("Beta: Restore beta bomb explosion", "gRestoreBetaBombExplosion", {
610+
.tooltip = "Restores the beta bomb explosion found inside the game"
611+
});
612+
609613
UIWidgets::CVarCheckbox("Beta: Restore beta coin", "gRestoreBetaCoin", {
610614
.tooltip = "Restores the beta coin that got replaced with the gold ring"
611615
});

0 commit comments

Comments
 (0)