Browse Source

engine: client: cl_demo: fix usercmd in demo playback

I have no explanation why this works but it kinda does?
pull/2/head
Alibek Omarov 9 months ago
parent
commit
3c28b11754
  1. 3
      engine/client/cl_demo.c

3
engine/client/cl_demo.c

@ -570,6 +570,9 @@ void CL_ReadDemoUserCmd( qboolean discard ) @@ -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;

Loading…
Cancel
Save