From 672777a79b23f2373c5f8f639a9636e94595d35b Mon Sep 17 00:00:00 2001 From: Cong Date: Wed, 13 Mar 2024 23:28:21 +1100 Subject: [PATCH] Update pause_menu.c --- src/pause_menu.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/pause_menu.c b/src/pause_menu.c index 3dda601be..316b1cba3 100644 --- a/src/pause_menu.c +++ b/src/pause_menu.c @@ -53,20 +53,12 @@ bool PauseMenuUpdate( PauseMenu *pm, const int cmds[MAX_LOCAL_PLAYERS], const int lastCmds[MAX_LOCAL_PLAYERS]) { - int cmdAll = 0; - int lastCmdAll = 0; - for (int i = 0; i < MAX_LOCAL_PLAYERS; i++) - { - lastCmdAll |= lastCmds[i]; - } - input_device_e pausingDevice = INPUT_DEVICE_UNSET; input_device_e firstPausingDevice = INPUT_DEVICE_UNSET; if (GetNumPlayers(PLAYER_ANY, false, true) == 0) { // If no players, allow default keyboard firstPausingDevice = INPUT_DEVICE_KEYBOARD; - cmdAll |= cmds[0]; } else { @@ -79,7 +71,6 @@ bool PauseMenuUpdate( idx--; continue; } - cmdAll |= cmds[idx]; if (firstPausingDevice == INPUT_DEVICE_UNSET) { firstPausingDevice = p->inputDevice;