From 425160ceafa487b2cefb726fc47ec5446224f472 Mon Sep 17 00:00:00 2001 From: SinnamonLat Date: Sat, 26 Feb 2022 11:05:19 +0100 Subject: [PATCH] Don't allow editing guest profile --- src/k_menufunc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/k_menufunc.c b/src/k_menufunc.c index 0f0934cc1..6a9438c75 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -3707,6 +3707,15 @@ void M_HandleProfileSelect(INT32 ch) else if (M_MenuButtonPressed(pid, MBT_A) || M_MenuButtonPressed(pid, MBT_X)) { + + if (optionsmenu.profilen == 0) // Guest profile, you can't edit that one! + { + S_StartSound(NULL, sfx_s3k7b); + M_StartMessage(M_GetText("Guest Profile cannot be edited.\nTo change parameters,\ncreate a new Profile."), NULL, MM_NOTHING); + M_SetMenuDelay(pid); + return; + } + S_StartSound(NULL, sfx_menu1); if (optionsmenu.profilen == maxp)