From 829be9b56beb60cb39aa53587552d6fe41960aef Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 24 Mar 2021 09:02:07 +0100 Subject: [PATCH] - use value parameters for arguments in binaryangle.h. --- source/core/binaryangle.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/binaryangle.h b/source/core/binaryangle.h index a38c2200b..e20999581 100644 --- a/source/core/binaryangle.h +++ b/source/core/binaryangle.h @@ -511,11 +511,11 @@ inline FSerializer &Serialize(FSerializer &arc, const char *key, fixedhoriz &obj // //--------------------------------------------------------------------------- -inline double bradarangf(const double& vect) +inline double bradarangf(double vect) { return atan(vect) * BRadAngScale; } -inline double bvectangf(const int32_t& x, const int32_t& y) +inline double bvectangf(int32_t x, int32_t y) { if ((x | y) == 0) { @@ -546,15 +546,15 @@ inline double bvectangf(const int32_t& x, const int32_t& y) return fmod(bradarangf(double(x) / -y) + 512 + ((y < 0) << 10), 2048.); } } -inline int32_t bvectang(const int32_t& x, const int32_t& y) +inline int32_t bvectang(int32_t x, int32_t y) { return xs_CRoundToInt(bvectangf(x, y)); } -inline fixed_t bvectangq16(const int32_t& x, const int32_t& y) +inline fixed_t bvectangq16(int32_t x, int32_t y) { return FloatToFixed(bvectangf(x, y)); } -inline binangle bvectangbam(const int32_t& x, const int32_t& y) +inline binangle bvectangbam(int32_t x, int32_t y) { return bamang(xs_CRoundToUInt(bvectangf(x, y) * BAMUNIT)); }