Remove BAM_FACTOR from FAngle, because it takes up physical space in the struct

This commit is contained in:
Randy Heit 2016-04-23 17:27:36 -05:00
parent 565bab8bd3
commit b8e3e1f095

View file

@ -781,16 +781,13 @@ Outside comments: A faster version with only 10 (not 24) multiplies.
}
};
#define BAM_FACTOR (90. / 0x40000000)
template<class vec_t>
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;