From 4eaf05d95e2d547fb542dfd9e50ef55cb4cd25b6 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 19 Apr 2021 19:32:42 +1000 Subject: [PATCH 1/3] - Duke: Fix bad vehicle speed clamp change from e79c6bacd34ba5308523d895b34e37205584d2fb. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixes #325. - 🤦 --- source/games/duke/src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index a943cb033..96569a2f7 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -755,7 +755,7 @@ static void processVehicleInput(player_struct *p, ControlInfo* const hidInput, I input.avel = boatApplyTurn(p, hidInput, kbdLeft, kbdRight, scaleAdjust); } - input.fvel = clamp(xs_CRoundToInt(p->MotoSpeed), -(MAXVELMOTO >> 3), MAXVELMOTO); + loc.fvel = clamp(xs_CRoundToInt(p->MotoSpeed), -(MAXVELMOTO >> 3), MAXVELMOTO); input.avel *= BAngToDegree; loc.avel += input.avel; } From 1daa346fdded1aad3a1f983ab085fae54b993608 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 19 Apr 2021 20:23:22 +1000 Subject: [PATCH 2/3] - Exhumed: Make `SB_CENTERVIEW` work properly when `cl_syncinput 1` is set. --- source/games/exhumed/src/player.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 547abc038..1f02a17f3 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -2638,7 +2638,12 @@ loc_1BD2E: Player* pPlayer = &PlayerList[nPlayer]; - if (actions & (SB_LOOK_UP | SB_LOOK_DOWN)) + if (SyncInput()) + { + sethorizon(&pPlayer->horizon, sPlayerInput[nPlayer].pan, &sPlayerInput[nLocalPlayer].actions); + } + + if (actions & (SB_LOOK_UP | SB_LOOK_DOWN) || sPlayerInput[nPlayer].pan) { pPlayer->nDestVertPan = pPlayer->horizon.horiz; pPlayer->bPlayerPan = pPlayer->bLockPan = true; @@ -2649,17 +2654,6 @@ loc_1BD2E: pPlayer->bPlayerPan = pPlayer->bLockPan = false; } - if (SyncInput()) - { - sethorizon(&pPlayer->horizon, sPlayerInput[nPlayer].pan, &sPlayerInput[nLocalPlayer].actions); - } - - if (sPlayerInput[nPlayer].pan) - { - pPlayer->nDestVertPan = pPlayer->horizon.horiz; - pPlayer->bPlayerPan = pPlayer->bLockPan = true; - } - if (totalvel[nPlayer] > 20) { pPlayer->bPlayerPan = false; From c8e466c9958d29aee01e5acd837a532524acd493 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 19 Apr 2021 12:46:47 +0200 Subject: [PATCH 3/3] - delete the "New savegame" node before starting work on the savegame. This caused an off-by-one issue in the displayed list. --- source/common/menu/savegamemanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/menu/savegamemanager.cpp b/source/common/menu/savegamemanager.cpp index 935b6dedd..22dd8c6a3 100644 --- a/source/common/menu/savegamemanager.cpp +++ b/source/common/menu/savegamemanager.cpp @@ -232,6 +232,7 @@ DEFINE_ACTION_FUNCTION(FSavegameManager, LoadSavegame) void FSavegameManagerBase::DoSave(int Selected, const char *savegamestring) { + RemoveNewSaveNode(); if (Selected != 0) { auto node = SaveGames[Selected];