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 13, 2024
1 parent 00d1e9c commit d5c85cd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/prep.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ static GameLoopResult PlayerSelectionUpdate(GameLoopData *data, LoopRunner *l)

// Menu input
int idx = 0;
const bool useMenuCmd = GetNumPlayers(PLAYER_ANY, true, true);
for (int i = 0; i < (int)gPlayerDatas.size; i++, idx++)
{
const PlayerData *p = CArrayGet(&gPlayerDatas, i);
Expand All @@ -427,11 +426,6 @@ static GameLoopResult PlayerSelectionUpdate(GameLoopData *data, LoopRunner *l)
ms->current, ms->current->customPostUpdateData);
}
MenuUpdateMouse(ms);
if (useMenuCmd)
{
cmds[idx] |=
GetMenuCmd(&gEventHandlers, ms->current->mouseHover);
}
if (!MenuIsExit(ms) && cmds[idx])
{
MenuProcessCmd(ms, cmds[idx]);
Expand Down

0 comments on commit d5c85cd

Please sign in to comment.