From 7217ce6ff9ee0167c1f4a90c0ef17ca8bde81f66 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 2 Apr 2023 19:17:43 +1000 Subject: [PATCH] - Duke: Ensure hard landing check is done after pitch keys. * Oversight from e9a5f745fcb318b4b33f6c0cbf782587b5758482. --- source/games/duke/src/player_d.cpp | 4 ++-- source/games/duke/src/player_r.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index 2b4b78c63..c4357c4bd 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -2990,8 +2990,6 @@ HORIZONLY: playerAimDown(snum, actions); } - p->checkhardlanding(); - if (SyncInput()) { p->GetActor()->spr.Angles.Pitch += GetPlayerHorizon(snum); @@ -2999,6 +2997,8 @@ HORIZONLY: p->Angles.doPitchKeys(&p->sync); + p->checkhardlanding(); + //Shooting code/changes if (p->show_empty_weapon > 0) diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index 763b35960..22e792e69 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -3733,8 +3733,6 @@ HORIZONLY: p->GetActor()->spr.Angles.Pitch += maphoriz(d); } - p->checkhardlanding(); - if (SyncInput()) { p->GetActor()->spr.Angles.Pitch += GetPlayerHorizon(snum); @@ -3742,6 +3740,8 @@ HORIZONLY: p->Angles.doPitchKeys(&p->sync); + p->checkhardlanding(); + //Shooting code/changes if (p->show_empty_weapon > 0)