Fix displaying demo name when loading demo

This commit is contained in:
Zack Middleton 2013-03-09 15:58:35 -06:00
parent 89ee8b050f
commit b009528e6a

View file

@ -1142,13 +1142,13 @@ void CL_PlayDemo_f( void ) {
Com_Error( ERR_DROP, "couldn't open %s", name); Com_Error( ERR_DROP, "couldn't open %s", name);
return; return;
} }
Q_strncpyz( clc.demoName, Cmd_Argv(1), sizeof( clc.demoName ) ); Q_strncpyz( clc.demoName, arg, sizeof( clc.demoName ) );
Con_Close(); Con_Close();
clc.state = CA_CONNECTED; clc.state = CA_CONNECTED;
clc.demoplaying = qtrue; clc.demoplaying = qtrue;
Q_strncpyz( clc.servername, Cmd_Argv(1), sizeof( clc.servername ) ); Q_strncpyz( clc.servername, arg, sizeof( clc.servername ) );
#ifdef LEGACY_PROTOCOL #ifdef LEGACY_PROTOCOL
if(protocol <= com_legacyprotocol->integer) if(protocol <= com_legacyprotocol->integer)