Use actual characters instead of ASCII codes as per Sryder's suggestion

This commit is contained in:
ThatAwesomeGuy173 2019-01-26 14:15:37 -07:00
parent fb6570cade
commit eb29063ef1
1 changed files with 1 additions and 1 deletions

View File

@ -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;