diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index 0edd989b9..aededa76a 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -239,6 +239,18 @@ inline int getangle(const vec2_t& vec) } +//--------------------------------------------------------------------------- +// +// Returns an angle delta for Build angles. +// +//--------------------------------------------------------------------------- + +inline constexpr int getincangle(int a, int na) +{ + return int(unsigned(na << 21) - unsigned(a << 21)) >> 21; +} + + extern int cameradist, cameraclock; void loaddefinitionsfile(const char* fn, bool cumulative = false, bool maingrp = false); diff --git a/source/core/gameinput.h b/source/core/gameinput.h index f1e7c0b76..46bc75dca 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -7,11 +7,6 @@ #include "gamestruct.h" #include "packet.h" -inline constexpr int getincangle(int a, int na) -{ - return int(unsigned(na << 21) - unsigned(a << 21)) >> 21; -} - struct PlayerHorizon { fixedhoriz horiz, ohoriz, horizoff, ohorizoff;