On second thoughts, restrict ANY profile application in dedicated - not just on initial startup - to the Guest profile

This commit is contained in:
toaster 2022-11-12 17:48:00 +00:00
parent f5f94b977e
commit 8882406ff3

View file

@ -449,8 +449,9 @@ void PR_ApplyProfile(UINT8 profilenum, UINT8 playernum)
profile_t *p = PR_GetProfile(profilenum);
// this CAN happen!!
if (p == NULL)
if (dedicated || p == NULL)
{
if (!dedicated)
CONS_Printf("Profile '%d' could not be loaded as it does not exist. Guest Profile will be loaded instead.\n", profilenum);
profilenum = 0; // make sure to set this so that the cvar is set properly.
p = PR_GetProfile(profilenum);
@ -481,8 +482,9 @@ void PR_ApplyProfilePretend(UINT8 profilenum, UINT8 playernum)
profile_t *p = PR_GetProfile(profilenum);
// this CAN happen!!
if (p == NULL)
if (dedicated || p == NULL)
{
if (!dedicated)
CONS_Printf("Profile '%d' could not be loaded as it does not exist. Guest Profile will be loaded instead.\n", profilenum);
profilenum = 0; // make sure to set this so that the cvar is set properly.
p = PR_GetProfile(profilenum);