From 19d9e1a9471b166b32b7c60282badd56f8f1f8f9 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 18 Oct 2020 21:31:36 +1100 Subject: [PATCH] - binaryangle.h: Fix issues with `PlayerAngle.settarget()` following changes in bf5bd01164a3e75a7ff6da15192a7f3350cbccf9. * Just was not working whatsoever, really... --- source/core/gameinput.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 0a05dc211..86de26403 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -93,8 +93,7 @@ struct PlayerAngle { binangle ang, oang; lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin; - uint32_t target; - double adjustment; + double adjustment, target; void backup() { @@ -131,7 +130,7 @@ struct PlayerAngle { if (!cl_syncinput) { - target = xs_CRoundToUInt(value * BAMUNIT); + target = value * BAMUNIT; if (target == 0) target += 1; } else