From e9e4590f6a3898ba43c6f0d359e0ba63336315c6 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 26 Nov 2020 16:42:07 +1100 Subject: [PATCH] - gameinput.h: For PlayerHorizon and PlayerAngle struct methods `settarget()`, always set the angle directly if backup set to true. --- source/core/gameinput.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 0c57a41e6..ce4dc94ee 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -45,7 +45,7 @@ struct PlayerHorizon void settarget(double value, bool backup = false) { - if (!cl_syncinput) + if (!cl_syncinput && !backup) { target = value * FRACUNIT; if (target == 0) target += 1; @@ -169,7 +169,7 @@ struct PlayerAngle void settarget(int value, bool backup = false) { - if (!cl_syncinput) + if (!cl_syncinput && !backup) { target = value << BAMBITS; if (target == 0) target += 1; @@ -183,7 +183,7 @@ struct PlayerAngle void settarget(double value, bool backup = false) { - if (!cl_syncinput) + if (!cl_syncinput && !backup) { target = value * BAMUNIT; if (target == 0) target += 1; @@ -197,7 +197,7 @@ struct PlayerAngle void settarget(binangle value, bool backup = false) { - if (!cl_syncinput) + if (!cl_syncinput && !backup) { target = value.asbam(); if (target == 0) target += 1;