Index: code/math/fvi.cpp
===================================================================
--- code/math/fvi.cpp	(revision 11156)
+++ code/math/fvi.cpp	(working copy)
@@ -341,8 +341,8 @@
 		}
 	}
 
-	// ray origin inside bounding box			
-	if (middle) {
+	// ray origin inside bounding box?
+	if (middle == ((1<<0) | (1<<1) | (1<<2))) {
 		*hitpt = *p0;
 		return 1;
 	}
