From 0fe5ac6a56ff6c7531fdbaa1e13dadec8e940a79 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Sat, 30 Oct 2021 20:30:08 +1100 Subject: [PATCH] - gameinput.h: Correctly use `targetset()` in `PlayerHorizon` and `PlayerAngle` structs. --- source/core/gameinput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 8f7b9ad58..2f28e501f 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -47,7 +47,7 @@ struct PlayerHorizon // Input locking helpers. void lockinput() { inputdisabled = true; } void unlockinput() { inputdisabled = false; } - bool movementlocked() { return target.asq16() || inputdisabled; } + bool movementlocked() { return targetset() || inputdisabled; } // Draw code helpers. double horizsumfrac(double const smoothratio) { return (!SyncInput() ? sum() : interpolatedsum(smoothratio)).asbuildf() * (1. / 16.); } @@ -151,7 +151,7 @@ struct PlayerAngle // Input locking helpers. void lockinput() { inputdisabled = true; } void unlockinput() { inputdisabled = false; } - bool movementlocked() { return target.asq16() || inputdisabled; } + bool movementlocked() { return targetset() || inputdisabled; } // Draw code helpers. double look_anghalf(double const smoothratio) { return (!SyncInput() ? look_ang : interpolatedlookang(smoothratio)).signedbuildf() * 0.5; }