From 3ab3e40a2a934a41f704682823b287ce8328b6ed Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 28 Jan 2008 11:44:27 +0000 Subject: [PATCH] note to myself: skipping over data works better if you actually do it git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8033 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_demo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cl_demo.c b/cl_demo.c index 50a23fc6..6d5087f4 100644 --- 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]); -- 2.39.2