git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12159
d7cf8633-e32d-0410-b094-
e92efae38249
#ifndef COLLISION_H
#define COLLISION_H
-typedef struct plane_s
+typedef union plane_s
{
- vec3_t normal;
- float dist;
+ struct
+ {
+ vec3_t normal;
+ vec_t dist;
+ };
+ vec4_t dist_and_normal;
}
plane_t;
{
const struct texture_s *texture;
int q3surfaceflags;
- vec3_t normal;
- vec_t dist;
+ union
+ {
+ struct
+ {
+ vec3_t normal;
+ vec_t dist;
+ };
+ vec4_t normal_and_dist;
+ };
}
colplanef_t;