From 60979ee4788e173b36b6457adef90811f8c2a7b7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 15 Mar 2021 10:11:49 +0100 Subject: [PATCH] - 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 --- source/core/mainloop.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 87868ebe8..286f016cb 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -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);