From 5cd436e848e28b4ff013ab33c2bf7cdd0d1aa4b2 Mon Sep 17 00:00:00 2001 From: Jonaeru Date: Sun, 9 Feb 2025 14:04:01 +0900 Subject: [PATCH] Fix check status not being changed by Start button in Select Random Weapon Menu --- src/game/mplayer/setup.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/game/mplayer/setup.c b/src/game/mplayer/setup.c index 4d7f0d5f7..cae26d3c7 100644 --- a/src/game/mplayer/setup.c +++ b/src/game/mplayer/setup.c @@ -1196,18 +1196,16 @@ MenuItemHandlerResult mpSelectRandomWeaponListHandler(s32 operation, struct menu s32 i; if (data->list.value < numweapons) { - for (i = 0; i <= mpweaponnum; i++) { - if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature) == 0) { - mpweaponnum++; + if (data->list.unk04 == 0) { + for (i = 0; i <= mpweaponnum; i++) { + if (challengeIsFeatureUnlocked(g_MpWeapons[i].unlockfeature) == 0) { + mpweaponnum++; + } + + optionindex = mpweaponnum; } - optionindex = mpweaponnum; - } - - if (g_MpWeaponSetRandomFilters[optionindex] == 0) { - g_MpWeaponSetRandomFilters[optionindex] = 1; - } else { - g_MpWeaponSetRandomFilters[optionindex] = 0; + g_MpWeaponSetRandomFilters[optionindex] = 1 - g_MpWeaponSetRandomFilters[optionindex]; } } else { s32 index = data->list.value - numweapons;