fix the multiplayer menu not allowing the full max length for player names unlike the "name" console command

This commit is contained in:
Monster Iestyn 2018-06-26 17:46:04 +01:00
parent 650e0eafce
commit 415c095274

View file

@ -6543,7 +6543,7 @@ static void M_HandleSetupMultiPlayer(INT32 choice)
if (choice < 32 || choice > 127 || itemOn != 0)
break;
l = strlen(setupm_name);
if (l < MAXPLAYERNAME-1)
if (l < MAXPLAYERNAME)
{
S_StartSound(NULL,sfx_menu1); // Tails
setupm_name[l] =(char)choice;