From 33c5194a1bf4be610155d56f5d7b30b8f2d7f560 Mon Sep 17 00:00:00 2001 From: Jonaeru Date: Sun, 30 Mar 2025 22:48:14 +0900 Subject: [PATCH] Fix "Select Dark" in Select Random Weapons feature to not select IR Scanner and Night Vision --- src/game/mplayer/setup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/mplayer/setup.c b/src/game/mplayer/setup.c index cae26d3c7..962d05392 100644 --- a/src/game/mplayer/setup.c +++ b/src/game/mplayer/setup.c @@ -1214,7 +1214,10 @@ MenuItemHandlerResult mpSelectRandomWeaponListHandler(s32 operation, struct menu case 0: // Select Dark for (i = 0; i < ARRAYCOUNT(g_MpWeapons); i++) { - if ((i >= MPWEAPON_NONE && i <= MPWEAPON_COMBATBOOST) || i >= MPWEAPON_SHIELD) { + if ((i >= MPWEAPON_NONE && i <= MPWEAPON_XRAYSCANNER) + || i == MPWEAPON_CLOAKINGDEVICE + || i == MPWEAPON_COMBATBOOST + || i >= MPWEAPON_SHIELD) { g_MpWeaponSetRandomFilters[i] = 1; } else { g_MpWeaponSetRandomFilters[i] = 0;