mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 16:10:52 +00:00
- Eliminate getincanglebam()
.
This commit is contained in:
parent
c25493762b
commit
dd55569915
1 changed files with 1 additions and 6 deletions
|
@ -6,14 +6,9 @@
|
||||||
#include "gamestruct.h"
|
#include "gamestruct.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
|
|
||||||
inline constexpr binangle getincanglebam(binangle a, binangle na)
|
|
||||||
{
|
|
||||||
return na-a;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline constexpr int getincangle(int a, int na)
|
inline constexpr int getincangle(int a, int na)
|
||||||
{
|
{
|
||||||
return getincanglebam(buildang(a), buildang(na)).signedbuild();
|
return int(unsigned(na << 21) - unsigned(a << 21)) >> 21;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PlayerHorizon
|
struct PlayerHorizon
|
||||||
|
|
Loading…
Reference in a new issue