mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 22:22:55 +00:00
On second thoughts, restrict ANY profile application in dedicated - not just on initial startup - to the Guest profile
This commit is contained in:
parent
f5f94b977e
commit
8882406ff3
1 changed files with 6 additions and 4 deletions
|
|
@ -449,8 +449,9 @@ void PR_ApplyProfile(UINT8 profilenum, UINT8 playernum)
|
||||||
profile_t *p = PR_GetProfile(profilenum);
|
profile_t *p = PR_GetProfile(profilenum);
|
||||||
|
|
||||||
// this CAN happen!!
|
// 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);
|
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.
|
profilenum = 0; // make sure to set this so that the cvar is set properly.
|
||||||
p = PR_GetProfile(profilenum);
|
p = PR_GetProfile(profilenum);
|
||||||
|
|
@ -481,8 +482,9 @@ void PR_ApplyProfilePretend(UINT8 profilenum, UINT8 playernum)
|
||||||
profile_t *p = PR_GetProfile(profilenum);
|
profile_t *p = PR_GetProfile(profilenum);
|
||||||
|
|
||||||
// this CAN happen!!
|
// 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);
|
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.
|
profilenum = 0; // make sure to set this so that the cvar is set properly.
|
||||||
p = PR_GetProfile(profilenum);
|
p = PR_GetProfile(profilenum);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue