mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- move stuff around
This commit is contained in:
parent
a69bdb3370
commit
fce956f83e
3 changed files with 7 additions and 8 deletions
|
@ -515,6 +515,13 @@ static void viewApplyDefaultPal(tspritetype* pTSprite, sectortype const* pSector
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static int GetOctant(int x, int y)
|
||||
{
|
||||
static const uint8_t OctantTable[8] = { 5, 6, 2, 1, 4, 7, 3, 0 };
|
||||
int vc = abs(x) - abs(y);
|
||||
return OctantTable[7 - (x < 0) - (y < 0) * 2 - (vc < 0) * 4];
|
||||
}
|
||||
|
||||
void viewProcessSprites(tspriteArray& tsprites, int32_t cX, int32_t cY, int32_t cZ, DAngle cA, int32_t smoothratio)
|
||||
{
|
||||
int nViewSprites = tsprites.Size();
|
||||
|
|
|
@ -68,7 +68,6 @@ void warpInit(TArray<DBloodActor*>& actors);
|
|||
int CheckLink(DBloodActor* pSprite);
|
||||
int CheckLink(int* x, int* y, int* z, sectortype** pSector);
|
||||
|
||||
int GetOctant(int x, int y);
|
||||
void RotateVector(int* dx, int* dy, int nAngle);
|
||||
|
||||
#include "m_fixed.h"
|
||||
|
|
|
@ -27,13 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
BEGIN_BLD_NS
|
||||
|
||||
int OctantTable[8] = { 5, 6, 2, 1, 4, 7, 3, 0 };
|
||||
|
||||
int GetOctant(int x, int y)
|
||||
{
|
||||
int vc = abs(x) - abs(y);
|
||||
return OctantTable[7 - (x < 0) - (y < 0) * 2 - (vc < 0) * 4];
|
||||
}
|
||||
|
||||
void RotateVector(int* dx, int* dy, int nAngle)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue