mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
Restrict viewn command to netreplays
This commit is contained in:
parent
6dc04ab957
commit
3a8d7af712
1 changed files with 7 additions and 0 deletions
|
@ -1940,6 +1940,13 @@ Command_View_f (void)
|
|||
case '4': viewnum = 4; break;
|
||||
default: viewnum = 1;
|
||||
}
|
||||
|
||||
if (viewnum > 1 && !( multiplayer && demoplayback ))
|
||||
{
|
||||
CONS_Alert(CONS_NOTICE, "You must be viewing a multiplayer replay.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
displayplayerp = G_GetDisplayplayerPtr(viewnum);
|
||||
|
||||
if (COM_Argc() > 1)/* switch to player */
|
||||
|
|
Loading…
Reference in a new issue