Restrict viewn command to netreplays

This commit is contained in:
james 2019-02-04 20:48:48 -08:00
parent 6dc04ab957
commit 3a8d7af712

View file

@ -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 */