Skip to content

Commit

Permalink
Fix player 1 controls affecting others in player selection (fixes #855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtsley authored Jun 20, 2024
1 parent c1eca60 commit 18f3647
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 @@ -396,7 +396,8 @@ static GameLoopResult PlayerSelectionUpdate(GameLoopData *data, LoopRunner *l)
if (pData->endCounter == 0)
{
// Menu input
const bool useMenuCmd = GetNumPlayers(PLAYER_ANY, true, true);
const int localHumanPlayers = GetNumPlayers(PLAYER_ANY, true, true);
const bool useMenuCmd = (localHumanPlayers <= 1);
for (int i = 0; i < (int)gPlayerDatas.size; i++, idx++)
{
const PlayerData *p = CArrayGet(&gPlayerDatas, i);
Expand Down

0 comments on commit 18f3647

Please sign in to comment.