bool CM_CullWorldBox (const cplane_t *frustum, const vec3pair_t bounds) { int i; vec3_t transformed[8]; for (i = 0 ; i < 8 ; i++) { transformed[i][0] = bounds[i & 1][0]; transformed[i][1] = bounds[(i >> 1) & 1][1]; transformed[i][2] = bounds[(i >> 2) & 1][2]; } return(CM_CullBox(frustum, transformed)); }
bool CM_CullWorldBox (const cplane_t *frustum, const vec3pair_t bounds) { int i; vec3_t transformed[8]; for (i = 0 ; i < 8 ; i++) { transformed[i][0] = bounds[i & 1][0]; transformed[i][1] = bounds[(i >> 1) & 1][1]; transformed[i][2] = bounds[(i >> 2) & 1][2]; } //rwwFIXMEFIXME: Was not ! before. But that seems the way it should be and it works that way. Why? return(!CM_CullBox(frustum, transformed)); }