From eb29063ef1648357e9126aa8b9127f17f31b4f41 Mon Sep 17 00:00:00 2001 From: ThatAwesomeGuy173 Date: Sat, 26 Jan 2019 14:15:37 -0700 Subject: [PATCH] Use actual characters instead of ASCII codes as per Sryder's suggestion --- src/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index 1e7f07b2e..f0831a172 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -7964,7 +7964,7 @@ static void M_HandleConnectIP(INT32 choice) break; // Rudimentary number and period enforcing - also allows letters so hostnames can be used instead - if ((choice >= 45 && choice <= 58) || (choice >= 65 && choice <= 90) || (choice >= 97 && choice <= 122)) + if ((choice >= '-' && choice <= ':') || (choice >= 'A' && choice <= 'Z') || (choice >= 'a' && choice <= 'z')) { S_StartSound(NULL,sfx_menu1); // Tails setupm_ip[l] = (char)choice;