From 3a8d7af7123730183e7d656bdae6fd41c7931f9f Mon Sep 17 00:00:00 2001 From: james Date: Mon, 4 Feb 2019 20:48:48 -0800 Subject: [PATCH] Restrict viewn command to netreplays --- src/d_netcmd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 36275305..ab0f4bf3 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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 */