From 572bafa0f917379af7e1c98216f32f010df29210 Mon Sep 17 00:00:00 2001 From: GoldenTails Date: Sat, 6 Jun 2020 12:21:52 -0500 Subject: [PATCH] Use kinda counter-intuitive ternary operator to hack in a check for "use" for 2.2 compatibility --- src/g_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_input.c b/src/g_input.c index 55d91a8f5..1cf6990c9 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -996,7 +996,9 @@ static void setcontrol(INT32 (*gc)[2]) INT32 player = ((void*)gc == (void*)&gamecontrolbis ? 1 : 0); boolean nestedoverride = false; - namectrl = COM_Argv(1); + // Update me for 2.3 + namectrl = (stricmp(COM_Argv(1), "use")) ? COM_Argv(1) : "spin"; + for (numctrl = 0; numctrl < num_gamecontrols && stricmp(namectrl, gamecontrolname[numctrl]); numctrl++) ;