mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-21 03:01:17 +00:00
CLIENT: Fix restart button being gray in solo
Fixes https://github.com/nzp-team/nzportable/issues/1047 It looks like the player count was changed from a 0 index to a 1 index, but this code was not updated.
This commit is contained in:
parent
63e0581326
commit
b36ca9fe82
1 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ string(string prev_id) Menu_Pause_GetNextButton =
|
|||
}
|
||||
}
|
||||
|
||||
if (player_count != 0 && ret == "pm_reloa")
|
||||
if (player_count != 1 && ret == "pm_reloa")
|
||||
ret = "pm_opts";
|
||||
|
||||
if (ret == "")
|
||||
|
@ -47,7 +47,7 @@ string(string next_id) Menu_Pause_GetPreviousButton =
|
|||
}
|
||||
}
|
||||
|
||||
if (player_count != 0 && ret == "pm_reloa")
|
||||
if (player_count != 1 && ret == "pm_reloa")
|
||||
ret = "pm_resum";
|
||||
|
||||
if (ret == "")
|
||||
|
@ -86,7 +86,7 @@ void() Menu_Pause =
|
|||
{
|
||||
Menu_Button(1, "pm_resum", "RESUME CARNAGE", "Return to Game.") ? ToggleMenu() : 0;
|
||||
|
||||
if (player_count == 0)
|
||||
if (player_count == 1)
|
||||
Menu_Button(2, "pm_reloa", "RESTART LEVEL", "Tough luck? Give things another go.") ? Menu_Pause_EnterSubMenu(1) : 0;
|
||||
else
|
||||
Menu_GreyButton(2, "RESTART LEVEL");
|
||||
|
@ -122,4 +122,4 @@ void() Menu_Pause =
|
|||
}
|
||||
|
||||
sui_pop_frame();
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue