- Move getincangle() from gameinput.h to gamefuncs.h.

* Should be eliminated fairly soon, anyway.
This commit is contained in:
Mitchell Richters 2022-08-28 13:42:46 +10:00 committed by Christoph Oelckers
parent 3de1d2156d
commit 69dff8658f
2 changed files with 12 additions and 5 deletions

View file

@ -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);

View file

@ -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;