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]; diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 5b2f0f955..d857f232b 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; } diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 94e84740d..c4be2371b 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()) + { + pPlayer->horizon.sethorizon(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()) - { - pPlayer->horizon.sethorizon(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;