Don't allow creating new profiles mid-game

This commit is contained in:
SinnamonLat 2022-05-20 17:10:19 +02:00
parent 60449b8a26
commit 3f201c4609

View file

@ -4062,6 +4062,13 @@ void M_HandleProfileSelect(INT32 ch)
M_SetMenuDelay(pid);
return;
}
else if (optionsmenu.profilen == maxp && gamestate != GS_MENU)
{
S_StartSound(NULL, sfx_s3k7b);
M_StartMessage(M_GetText("Cannot create a New Profile\nmid-game. Return to the\nTitle Screen first."), NULL, MM_NOTHING);
M_SetMenuDelay(pid);
return;
}
S_StartSound(NULL, sfx_menu1);