diff --git a/src/g_game.c b/src/g_game.c index 80d027280..ea75a2069 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -313,7 +313,7 @@ boolean thwompsactive; // Thwomps activate on lap 2 UINT8 lastLowestLap; // Last lowest lap, for activating race lap executors SINT8 spbplace; // SPB exists, give the person behind better items boolean rainbowstartavailable; // Boolean, keeps track of if the rainbow start was gotten -tic_t linecrossed; // For Time Attack +tic_t linecrossed; // For Time Attack boolean inDuel; // Boolean, keeps track of if it is a 1v1 // Client-sided, unsynched variables (NEVER use in anything that needs to be synced with other players) @@ -1319,6 +1319,10 @@ boolean G_Responder(event_t *ev) || abs(ev->data3) > JOYAXISRANGE/2)) )) { + if (ev->device > 0) + { + G_SetDeviceForPlayer(0, ev->device); + } M_StartControlPanel(); return true; } diff --git a/src/k_menufunc.c b/src/k_menufunc.c index 1864740ed..d4ae87e16 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -746,7 +746,14 @@ void M_ClearMenus(boolean callexitmenufunc) #endif //Alam: But not on the Dreamcast's VMUs if (gamestate == GS_MENU) // Back to title screen + { + int i; + for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) + { + G_SetDeviceForPlayer(i, -1); + } D_StartTitle(); + } menutyping.active = false; menumessage.active = false;