engine: client: cl_demo: fix usercmd in demo playback

I have no explanation why this works but it kinda does?
This commit is contained in:
Alibek Omarov 2024-01-04 05:48:43 +03:00
parent f2584dcb9d
commit 3c28b11754

View File

@ -570,6 +570,9 @@ void CL_ReadDemoUserCmd( qboolean discard )
memset( &nullcmd, 0, sizeof( nullcmd )); memset( &nullcmd, 0, sizeof( nullcmd ));
MSG_Init( &buf, "UserCmd", data, sizeof( data )); MSG_Init( &buf, "UserCmd", data, sizeof( data ));
// a1ba: I have no proper explanation why
cmdnumber++;
pcmd = &cl.commands[cmdnumber & CL_UPDATE_MASK]; pcmd = &cl.commands[cmdnumber & CL_UPDATE_MASK];
pcmd->processedfuncs = false; pcmd->processedfuncs = false;
pcmd->senttime = 0.0f; pcmd->senttime = 0.0f;