From 1327ed6c972cc1a4943402b77400fcd0d5818337 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 9 Mar 2013 15:58:35 -0600 Subject: Fix displaying demo name when loading demo --- src/client/cl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/cl_main.c') diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 206df3be..ec3dd09b 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -1104,13 +1104,13 @@ void CL_PlayDemo_f( void ) { Com_Error( ERR_DROP, "couldn't open %s", name); return; } - Q_strncpyz( clc.demoName, Cmd_Argv(1), sizeof( clc.demoName ) ); + Q_strncpyz( clc.demoName, arg, sizeof( clc.demoName ) ); Con_Close(); clc.state = CA_CONNECTED; clc.demoplaying = qtrue; - Q_strncpyz( clc.servername, Cmd_Argv(1), sizeof( clc.servername ) ); + Q_strncpyz( clc.servername, arg, sizeof( clc.servername ) ); // read demo messages until connected while ( clc.state >= CA_CONNECTED && clc.state < CA_PRIMED ) { -- cgit