File tree 1 file changed +4
-4
lines changed
Generals/Code/Libraries/Source/WWVegas/WWMath
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
* *
27
27
* Author:: Greg Hjelstrom *
28
28
* *
29
- * $Modtime:: 5 /04/01 8:37p $*
29
+ * $Modtime:: 1 /04/02 6:29p $*
30
30
* *
31
- * $Revision:: 14 $*
31
+ * $Revision:: 15 $*
32
32
* *
33
33
*---------------------------------------------------------------------------------------------*
34
34
* Functions: *
@@ -593,7 +593,7 @@ static inline bool obb_separation_test
593
593
if ( u1 > rsum ) {
594
594
context.MaxFrac = 1 .0f ;
595
595
return true ;
596
- } else {
596
+ } else if ( WWMath::Fabs (u1-u0) > 0 . 0f ) {
597
597
tmp = (rsum-u0)/(u1-u0);
598
598
if ( tmp > context.MaxFrac ) {
599
599
context.MaxFrac = tmp;
@@ -606,7 +606,7 @@ static inline bool obb_separation_test
606
606
if ( u1 < -rsum ) {
607
607
context.MaxFrac = 1 .0f ;
608
608
return true ;
609
- } else {
609
+ } else if ( WWMath::Fabs (u1-u0) > 0 . 0f ) {
610
610
tmp = (-rsum-u0)/(u1-u0);
611
611
if ( tmp > context.MaxFrac ) {
612
612
context.MaxFrac = tmp;
You can’t perform that action at this time.
0 commit comments