Skip to content

Commit

Permalink
Fix player 1 controls affecting others in player selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtsley committed Jun 14, 2024
1 parent 00d1e9c commit 7d1779f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7d1779f

Please sign in to comment.