]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Oops... It seems this malloc/free was actually intended (part of a piece of code...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index e48efcc88ba68d7d203900d863cc2b3390921dc4..61c9bb0b05502c65d42cd7a612f1b2bb95805f90 100644 (file)
--- a/host.c
+++ b/host.c
@@ -864,6 +864,8 @@ Host_Init
 */
 void Host_Init (void)
 {
+       int i;
+
        // LordHavoc: quake never seeded the random number generator before... heh
        srand(time(NULL));
 
@@ -928,6 +930,12 @@ void Host_Init (void)
                Cbuf_InsertText("exec teu.rc\n");
        else
                Cbuf_InsertText("exec quake.rc\n");
+
+       // check for special benchmark mode
+       i = COM_CheckParm("-benchmark");
+       if (i && i + 1 < com_argc)
+               Cbuf_InsertText(va("timedemo %s\n", com_argv[i + 1]));
+
        Cbuf_Execute();
 }