Skip to content

Commit 5a22bc8

Browse files
committed
reorganise conditions into one statement
1 parent a5f732b commit 5a22bc8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

soh/src/code/z_parameter.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -1607,11 +1607,8 @@ void Inventory_SwapAgeEquipment(void) {
16071607
s16 i;
16081608
u16 shieldEquipValue;
16091609

1610-
if (IS_RANDO) {
1611-
Rando_Inventory_SwapAgeEquipment();
1612-
return;
1613-
} else if (CVarGetInteger("gSwitchAge", 0) || CVarGetInteger("gSwitchTimeline", 0)) {
1614-
// Can Utilise the Rando Flow Path
1610+
// Mod Enhancments can utilise the rando flow path
1611+
if (IS_RANDO || CVarGetInteger("gSwitchAge", 0) || CVarGetInteger("gSwitchTimeline", 0)) {
16151612
Rando_Inventory_SwapAgeEquipment();
16161613
CVarSetInteger("gSwitchTimeline", 0);
16171614
return;

0 commit comments

Comments
 (0)