]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed a bug with Host_Startdemos_f that caused it to never shorten the list of demos...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 May 2003 10:29:35 +0000 (10:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 May 2003 10:29:35 +0000 (10:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3001 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index f2737124f97d6926cddb0ac4cc097afff20a3cf5..83edbffcaaa713a8157014b3bc901dda5dc9d991 100644 (file)
@@ -1553,6 +1553,10 @@ void Host_Startdemos_f (void)
        for (i=1 ; i<c+1 ; i++)
                strncpy (cls.demos[i-1], Cmd_Argv(i), sizeof(cls.demos[0])-1);
 
+       // LordHavoc: clear the remaining slots
+       for (;i <= MAX_DEMOS;i++)
+               cls.demos[i-1][0] = 0;
+
        if (!sv.active && cls.demonum != -1 && !cls.demoplayback)
        {
                cls.demonum = 0;