From 2b22e49a9b90c6e5e300a6baabc277b06ca6057a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 22 Mar 2023 18:26:23 +1100 Subject: [PATCH] - Duke: Temporary workaround for last commit so the player returns to centre on level load. --- source/games/duke/src/gameloop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 4dc73dd31..f54b34442 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -61,6 +61,10 @@ void GameInterface::Ticker() ud.cameraactor = nullptr; + // temporary workaround for issue where first packet + // seems captured after the playsim has ran once. + playercmds[myconnectindex].ucmd.actions |= gi->GetNeededInputBits(); + // this must be done before the view is backed up. for (int i = connecthead; i >= 0; i = connectpoint2[i]) {