diff options
Diffstat (limited to 'src/tables.h')
-rw-r--r-- | src/tables.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/tables.h b/src/tables.h index baf785ca..544631d5 100644 --- a/src/tables.h +++ b/src/tables.h @@ -63,11 +63,20 @@ extern const fixed_t *finecosine; extern const fixed_t finetangent[FINEANGLES/2]; // Binary Angle Measument, BAM. -#define ANG45 0x20000000 -#define ANG90 0x40000000 -#define ANG180 0x80000000 -#define ANG270 0xc0000000 +#define ANG45 0x20000000 +#define ANG90 0x40000000 +#define ANG180 0x80000000 +#define ANG270 0xc0000000 +#define ANG_MAX 0xffffffff + +#define ANG1 (ANG45 / 45) +#define ANG60 (ANG180 / 3) + +// Heretic code uses this definition as though it represents one +// degree, but it is not! This is actually ~1.40 degrees. + +#define ANG1_X 0x01000000 #define SLOPERANGE 2048 #define SLOPEBITS 11 @@ -84,10 +93,7 @@ extern const angle_t tantoangle[SLOPERANGE+1]; // Utility function, // called by R_PointToAngle. -int -SlopeDiv -( unsigned num, - unsigned den); +int SlopeDiv(unsigned int num, unsigned int den); #endif |