a serverinfo packet is received, and ignoring attempts to connect to a
server when -benchmark is used
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10945
d7cf8633-e32d-0410-b094-
e92efae38249
if (cls.state == ca_dedicated)
return;
+ // don't connect to a server if we're benchmarking a demo
+ if (COM_CheckParm("-benchmark"))
+ return;
+
// clear menu's connect error message
M_Update_Return_Reason("");
cls.demonum = -1;
#include "libcurl.h"
#include "utf8lib.h"
#include "menu.h"
+#include "cl_video.h"
const char *svc_strings[128] =
{
protocolversion_t protocol;
int nummodels, numsounds;
+ // if we start loading a level and a video is still playing, stop it
+ CL_VideoStop();
+
Con_DPrint("Serverinfo packet received.\n");
Collision_Cache_Reset(true);
Host_StartVideo();
+ if (COM_CheckParm("-benchmark"))
+ return;
+
if (Cmd_Argc() < 2)
{
Con_Print("usage: playvideo <videoname> [custom_subtitles_file]\nplays video named video/<videoname>.dpv\nif custom subtitles file is not presented\nit tries video/<videoname>.sub");