From b8e3e1f0957f1d43c4ec3b26bf770c1ef1e94770 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 23 Apr 2016 17:27:36 -0500 Subject: [PATCH] Remove BAM_FACTOR from FAngle, because it takes up physical space in the struct --- src/vectors.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vectors.h b/src/vectors.h index 91cf1e962..8b81d05b2 100644 --- a/src/vectors.h +++ b/src/vectors.h @@ -781,16 +781,13 @@ Outside comments: A faster version with only 10 (not 24) multiplies. } }; +#define BAM_FACTOR (90. / 0x40000000) + template struct TAngle { vec_t Degrees; -private: - const double BAM_FACTOR = (90. / 0x40000000); -public: - - // This is to catch any accidental attempt to assign an angle_t to this type. Any explicit exception will require a type cast. TAngle(int) = delete; TAngle(unsigned int) = delete;