mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +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
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue