From 533433d41fe8878ec4aff5f932f2a34ac979819f Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 6 Jun 2023 16:45:45 +0100 Subject: [PATCH] play-char-select.c: We haven't had problems with devices for a while, so #define away all the device handling messages to reduce the spurious console noise. --- src/menus/play-char-select.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/menus/play-char-select.c b/src/menus/play-char-select.c index 5edd47f76..9e7d4ca60 100644 --- a/src/menus/play-char-select.c +++ b/src/menus/play-char-select.c @@ -7,6 +7,8 @@ #include "../k_grandprix.h" // K_CanChangeRules #include "../m_cond.h" // Condition Sets +//#define CHARSELECT_DEVICEDEBUG + menuitem_t PLAY_CharSelect[] = { {IT_NOTHING, NULL, NULL, NULL, {NULL}, 0, 0}, @@ -427,7 +429,9 @@ void M_CharacterSelectInit(void) { // Un-set devices G_SetDeviceForPlayer(i, -1); +#ifdef CHARSELECT_DEVICEDEBUG CONS_Printf("M_CharacterSelectInit: Device for %d set to %d\n", i, -1); +#endif } } } @@ -603,13 +607,17 @@ static boolean M_HandlePressStart(setup_player_t *p, UINT8 num) } G_SetDeviceForPlayer(num, device); +#ifdef CHARSELECT_DEVICEDEBUG CONS_Printf("M_HandlePressStart: Device for %d set to %d\n", num, device); +#endif for (j = num + 1; j < MAXSPLITSCREENPLAYERS; j++) { // Un-set devices for other players. G_SetDeviceForPlayer(j, -1); +#ifdef CHARSELECT_DEVICEDEBUG CONS_Printf("M_HandlePressStart: Device for %d set to %d\n", j, -1); +#endif } //setup_numplayers++; @@ -677,7 +685,9 @@ static boolean M_HandleCSelectProfile(setup_player_t *p, UINT8 num) } G_SetDeviceForPlayer(num, -1); +#ifdef CHARSELECT_DEVICEDEBUG CONS_Printf("M_HandleCSelectProfile: Device for %d set to %d\n", num, -1); +#endif return true; }