- 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
1 changed files with 2 additions and 7 deletions

View File

@ -79,11 +79,6 @@ public:
value -= other.value;
return *this;
}
constexpr binangle operator- () const
{
return binangle(-value);
}
constexpr binangle operator+ (binangle other) const
{
@ -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);