small fix

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@519 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Giles Williams 2006-05-02 15:27:21 +00:00
parent 7ecdae0f70
commit 9a791f1212

View File

@ -672,7 +672,7 @@ BOOL isHitByOctree( int* octbuffer, char* collbuffer, int level, GLfloat rad,
NSLog(@"DEBUG TESTING octant index: [%d] offset by ( %.2f, %.2f, %.2f)",
level, off.x, off.y, off.z);
}
// displace the cube by the offset
Vector u0 = make_vector( v0.x + off.x, v0.y + off.y, v0.z + off.z);
@ -689,6 +689,13 @@ BOOL isHitByOctree( int* octbuffer, char* collbuffer, int level, GLfloat rad,
return NO;
}
if (!other_octree)
{
if (debug_octree)
NSLog(@"DEBUG other_octree is null");
return NO;
}
if (other_octree[other_level] == 0)
{
if (debug_octree)