fixed NDP vid_restart fatal errors when demo file names contain spaces

This commit is contained in:
myT 2023-08-08 02:05:11 +02:00
parent a202404d16
commit db25062b05

View file

@ -1896,7 +1896,7 @@ static void CL_Vid_Restart_f()
// we don't really technically need to run everything again,
// but trying to optimize parts out is very likely to lead to nasty bugs
if ( clc.demoplaying && clc.newDemoPlayer ) {
Cmd_TokenizeString( va("demo %s", clc.demoName) );
Cmd_TokenizeString( va("demo \"%s\"", clc.demoName) );
CL_PlayDemo( qtrue );
}
// start the cgame if connected