From 7d1779fce3aaa09b6c59a35686d5db97bcd351c5 Mon Sep 17 00:00:00 2001 From: Kurtsley <73447098+Kurtsley@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:13:08 -0500 Subject: [PATCH] Fix player 1 controls affecting others in player selection --- src/prep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prep.c b/src/prep.c index b5b135beb..66af32b40 100644 --- a/src/prep.c +++ b/src/prep.c @@ -409,7 +409,8 @@ static GameLoopResult PlayerSelectionUpdate(GameLoopData *data, LoopRunner *l) // Menu input int idx = 0; - const bool useMenuCmd = GetNumPlayers(PLAYER_ANY, true, true); + const int localPlayers = GetNumPlayers(PLAYER_ANY, true, true); + const bool useMenuCmd = (localPlayers <= 1); for (int i = 0; i < (int)gPlayerDatas.size; i++, idx++) { const PlayerData *p = CArrayGet(&gPlayerDatas, i);