mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-06 09:21:04 +00:00
- Move getincangle()
from gameinput.h
to gamefuncs.h
.
* Should be eliminated fairly soon, anyway.
This commit is contained in:
parent
3de1d2156d
commit
69dff8658f
2 changed files with 12 additions and 5 deletions
|
@ -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;
|
extern int cameradist, cameraclock;
|
||||||
|
|
||||||
void loaddefinitionsfile(const char* fn, bool cumulative = false, bool maingrp = false);
|
void loaddefinitionsfile(const char* fn, bool cumulative = false, bool maingrp = false);
|
||||||
|
|
|
@ -7,11 +7,6 @@
|
||||||
#include "gamestruct.h"
|
#include "gamestruct.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
|
|
||||||
inline constexpr int getincangle(int a, int na)
|
|
||||||
{
|
|
||||||
return int(unsigned(na << 21) - unsigned(a << 21)) >> 21;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct PlayerHorizon
|
struct PlayerHorizon
|
||||||
{
|
{
|
||||||
fixedhoriz horiz, ohoriz, horizoff, ohorizoff;
|
fixedhoriz horiz, ohoriz, horizoff, ohorizoff;
|
||||||
|
|
Loading…
Reference in a new issue