mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-10 06:31:40 +00:00
Make anglemod a macro instead
This commit is contained in:
parent
7ce115ddc4
commit
5d340032c3
1 changed files with 2 additions and 5 deletions
|
@ -121,11 +121,8 @@ int GreatestCommonDivisor (int i1, int i2);
|
|||
void AngleVectors (vec3_t angles, vec3_t forward, vec3_t right, vec3_t up);
|
||||
int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct mplane_s *plane);
|
||||
|
||||
static inline float anglemod(float a)
|
||||
{
|
||||
a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
|
||||
return a;
|
||||
}
|
||||
|
||||
#define anglemod(a) ((360.0/65536) * ((int)((a)*(65536/360.0)) & 65535))
|
||||
|
||||
#define VectorL2Compare(v, w, m) \
|
||||
(_mathlib_temp_float1 = (m) * (m), \
|
||||
|
|
Loading…
Reference in a new issue