forked from Ports/perfect_dark
Fix check status not being changed by Start button in Select Random Weapon Menu
This commit is contained in:
1 parent
d5225b7784
commit
5cd436e848
1 file changed
+8
-10
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user