From c606fc11daedf6c88fc078496029c24083c0e5b8 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 12 Jan 2023 18:55:43 +1100 Subject: [PATCH] - Add call to `resetForcedSyncInput()` for all games. * Blood was missing it. * If it's pre-added to all games, it never needs thinking about. --- source/games/blood/src/blood.cpp | 3 +++ source/games/duke/src/gameloop.cpp | 3 +++ source/games/exhumed/src/exhumed.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/source/games/blood/src/blood.cpp b/source/games/blood/src/blood.cpp index 333b71da1..18e2b5ae3 100644 --- a/source/games/blood/src/blood.cpp +++ b/source/games/blood/src/blood.cpp @@ -440,6 +440,9 @@ void GameInterface::Ticker() // this must be done before the view is backed up. pPlayer->Angles.resetRenderAngles(); + // disable synchronised input if set by game. + resetForcedSyncInput(); + for (int i = connecthead; i >= 0; i = connectpoint2[i]) { viewBackupView(i); diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index 7edc0b63b..b53f266fb 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -72,6 +72,9 @@ void GameInterface::Ticker() // this must be done before the view is backed up. ps[myconnectindex].Angles.resetRenderAngles(); + // disable synchronised input if set by game. + resetForcedSyncInput(); + DukeSpriteIterator it; while (auto ac = it.Next()) { diff --git a/source/games/exhumed/src/exhumed.cpp b/source/games/exhumed/src/exhumed.cpp index 5a4bc1586..9366c933e 100644 --- a/source/games/exhumed/src/exhumed.cpp +++ b/source/games/exhumed/src/exhumed.cpp @@ -378,6 +378,9 @@ void GameInterface::Ticker() inita = inita.Normalized360(); + // disable synchronised input if set by game. + resetForcedSyncInput(); + auto& lPlayerVel = sPlayerInput[nLocalPlayer].vel; auto inputvect = DVector2(localInput.fvel, localInput.svel).Rotated(inita) * 0.375;