mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Restrict viewn command to netreplays
This commit is contained in:
parent
cd8cd10dbc
commit
3821918cb5
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…
Add table
Reference in a new issue