]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
note to myself: skipping over data works better if you actually do it
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Jan 2008 11:44:27 +0000 (11:44 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Jan 2008 11:44:27 +0000 (11:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8033 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 50a23fc6d2b29f60a578fc004e70c031d237be87..6d5087f4df0809958496079230651ca5ae9b92d9 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -187,7 +187,11 @@ void CL_ReadDemoMessage(void)
                FS_Read(cls.demofile, &net_message.cursize, 4);
                net_message.cursize = LittleLong(net_message.cursize);
                if(net_message.cursize & DEMOMSG_CLIENT_TO_SERVER) // This is a client->server message! Ignore for now!
+               {
+                       // skip over demo packet
+                       FS_Seek(cls.demofile, 12 + (net_message.cursize & (~DEMOMSG_CLIENT_TO_SERVER)), SEEK_CUR);
                        continue;
+               }
                if (net_message.cursize > net_message.maxsize)
                        Host_Error("Demo message (%i) > net_message.maxsize (%i)", net_message.cursize, net_message.maxsize);
                VectorCopy(cl.mviewangles[0], cl.mviewangles[1]);