diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-08-15 21:10:45 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-08-15 21:10:45 +0000 |
commit | 973f693af765ecfb2007398fb023a07bc4685030 (patch) | |
tree | f7610f12a0ad02ce95661d3d0757346f69308769 /source/q_shared.c | |
parent | d876b69b388528fd3236f2f05caac22345a798f4 (diff) |
Added --hard-link option to configure.
Link in assembly version of BoxOnPlaneSide.
Added simple game DLL interface for describing enhanced features.
Changed some renderer algorithms to do half of the
recurion path in simple cylce.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r-- | source/q_shared.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source/q_shared.c b/source/q_shared.c index 4a144e1..3dc313e 100644 --- a/source/q_shared.c +++ b/source/q_shared.c @@ -461,20 +461,11 @@ BoxOnPlaneSide Returns 1, 2, or 1 + 2 ================== */ +#ifndef USE_ASM int BoxOnPlaneSide( vec3_t emins, vec3_t emaxs, cplane_t *p ) { float dist1, dist2; int sides; - -// fast axial cases - if (p->type < 3) - { - if (p->dist <= emins[p->type]) - return 1; - if (p->dist >= emaxs[p->type]) - return 2; - return 3; - } // general case switch (p->signbits) @@ -524,6 +515,7 @@ dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2]; return sides; } +#endif // USE_ASM void ClearBounds (vec3_t mins, vec3_t maxs) { |