mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- 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:
parent
945dbc9f7e
commit
f046c5eb6b
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue