mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix Addon Options being unavailable as a netgame client
This commit is contained in:
parent
ca8e46b0ea
commit
f04ac2efcf
1 changed files with 12 additions and 6 deletions
|
|
@ -159,6 +159,13 @@ void M_OpenPauseMenu(void)
|
||||||
{
|
{
|
||||||
PAUSE_Main[mpause_psetup].status = IT_STRING | IT_CALL;
|
PAUSE_Main[mpause_psetup].status = IT_STRING | IT_CALL;
|
||||||
|
|
||||||
|
if (M_SecretUnlocked(SECRET_ADDONS, true))
|
||||||
|
{
|
||||||
|
PAUSE_Main[mpause_addons].status = IT_STRING | IT_ARROWS;
|
||||||
|
if (client)
|
||||||
|
menuaddonoptions = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (server || IsPlayerAdmin(consoleplayer))
|
if (server || IsPlayerAdmin(consoleplayer))
|
||||||
{
|
{
|
||||||
PAUSE_Main[mpause_changegametype].status = IT_STRING | IT_ARROWS;
|
PAUSE_Main[mpause_changegametype].status = IT_STRING | IT_ARROWS;
|
||||||
|
|
@ -167,11 +174,6 @@ void M_OpenPauseMenu(void)
|
||||||
PAUSE_Main[mpause_switchmap].status = IT_STRING | IT_CALL;
|
PAUSE_Main[mpause_switchmap].status = IT_STRING | IT_CALL;
|
||||||
PAUSE_Main[mpause_restartmap].status = IT_STRING | IT_CALL;
|
PAUSE_Main[mpause_restartmap].status = IT_STRING | IT_CALL;
|
||||||
|
|
||||||
if (M_SecretUnlocked(SECRET_ADDONS, true))
|
|
||||||
{
|
|
||||||
PAUSE_Main[mpause_addons].status = IT_STRING | IT_ARROWS;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (netgame)
|
if (netgame)
|
||||||
{
|
{
|
||||||
PAUSE_Main[mpause_admin].status = IT_STRING | IT_CALL;
|
PAUSE_Main[mpause_admin].status = IT_STRING | IT_CALL;
|
||||||
|
|
@ -333,6 +335,10 @@ void M_HandlePauseMenuAddons(INT32 choice)
|
||||||
}
|
}
|
||||||
|
|
||||||
menuaddonoptions = menuaddonoptions ? 0 : 1;
|
menuaddonoptions = menuaddonoptions ? 0 : 1;
|
||||||
|
|
||||||
|
if (client)
|
||||||
|
menuaddonoptions = 0;
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_s3k5b);
|
S_StartSound(NULL, sfx_s3k5b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue