From 3f201c460980c51fd1650703b8647027b49e7ffb Mon Sep 17 00:00:00 2001 From: SinnamonLat Date: Fri, 20 May 2022 17:10:19 +0200 Subject: [PATCH] Don't allow creating new profiles mid-game --- src/k_menufunc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/k_menufunc.c b/src/k_menufunc.c index ec47dc549..5233ba67d 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -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);