From bf5bd01164a3e75a7ff6da15192a7f3350cbccf9 Mon Sep 17 00:00:00 2001
From: Mitchell Richters <mjr4077au@gmail.com>
Date: Mon, 12 Oct 2020 14:51:53 +1100
Subject: [PATCH] - binaryangle.h/PlayerAngle: Make `settarget()` method
 consistent with `PlayerHorizon` class and fix incorrect variable declaration.

---
 source/core/gameinput.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/source/core/gameinput.h b/source/core/gameinput.h
index b5bdd194b..fc9c403dc 100644
--- a/source/core/gameinput.h
+++ b/source/core/gameinput.h
@@ -93,7 +93,8 @@ struct PlayerAngle
 {
 	binangle ang, oang;
 	lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin;
-	double adjustment, target;
+	uint32_t target;
+	double adjustment;
 
 	void backup()
 	{
@@ -130,8 +131,8 @@ struct PlayerAngle
 	{
 		if (!cl_syncinput)
 		{
-			if (value == 0) value += (1. / BAMUNIT);
 			target = xs_CRoundToUInt(value * BAMUNIT);
+			if (target == 0) target += 1;
 		}
 		else
 		{