diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 193ff6713..dd7ad05fc 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -6,14 +6,9 @@ #include "gamestruct.h" #include "packet.h" -inline constexpr binangle getincanglebam(binangle a, binangle na) -{ - return na-a; -} - 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