From 3c28b1175452c6ff060a767595995e56ff276e40 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 4 Jan 2024 05:48:43 +0300 Subject: [PATCH] engine: client: cl_demo: fix usercmd in demo playback I have no explanation why this works but it kinda does? --- engine/client/cl_demo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/cl_demo.c b/engine/client/cl_demo.c index d93badaa..a21ff72d 100644 --- a/engine/client/cl_demo.c +++ b/engine/client/cl_demo.c @@ -570,6 +570,9 @@ void CL_ReadDemoUserCmd( qboolean discard ) memset( &nullcmd, 0, sizeof( nullcmd )); MSG_Init( &buf, "UserCmd", data, sizeof( data )); + // a1ba: I have no proper explanation why + cmdnumber++; + pcmd = &cl.commands[cmdnumber & CL_UPDATE_MASK]; pcmd->processedfuncs = false; pcmd->senttime = 0.0f;