- fixed: G_BuildTiccmd needs to clear the command struct.

This could otherwise pick up some stray data from earlier calls and create bogus input.
Fixes #97
This commit is contained in:
Christoph Oelckers 2021-03-15 10:11:49 +01:00
parent d604ca732f
commit 60979ee478

View file

@ -118,6 +118,7 @@ void DoLoadGame(const char* name);
void G_BuildTiccmd(ticcmd_t* cmd)
{
cmd->ucmd = {};
I_GetEvent();
auto input = CONTROL_GetInput();
gi->GetInput(&cmd->ucmd, &input);