- fix compiler warnings and actual issues with in-game horizon.

* Can't have a - operator on unsigned int in the binangle class.
* Changed fixed horiz class from unsigned to signed as in-game horizon is a signed integer.
This commit is contained in:
Mitchell Richters 2020-07-24 01:08:50 +10:00
parent 945dbc9f7e
commit f046c5eb6b

View file

@ -80,11 +80,6 @@ public:
return *this;
}
constexpr binangle operator- () const
{
return binangle(-value);
}
constexpr binangle operator+ (binangle other) const
{
return binangle(value + other.value);
@ -108,9 +103,9 @@ public:
class fixedhoriz
{
unsigned int value;
int value;
constexpr fixedhoriz(unsigned int v) : value(v) {}
constexpr fixedhoriz(int v) : value(v) {}
friend constexpr fixedhoriz q16horiz(int v);
friend constexpr fixedhoriz buildhoriz(int v);