Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
30ef41102b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pandatool/src/flt/fltHeader.cxx

+ 4 - 2
pandatool/src/flt/fltHeader.cxx

@@ -9,6 +9,8 @@
 #include "fltUnsupportedRecord.h"
 #include "fltUnsupportedRecord.h"
 #include "config_flt.h"
 #include "config_flt.h"
 
 
+#include <nearly_zero.h>
+
 #include <assert.h>
 #include <assert.h>
 #include <math.h>
 #include <math.h>
 
 
@@ -284,7 +286,7 @@ bool FltHeader::
 check_version() const {
 check_version() const {
   double version = get_flt_version();
   double version = get_flt_version();
 
 
-  if (version < min_flt_version()) {
+  if (version < min_flt_version() && !IS_NEARLY_EQUAL(version, min_flt_version())) {
     nout << "Warning!  The version number of this file appears to be "
     nout << "Warning!  The version number of this file appears to be "
 	 << version << ", which is older than " << min_flt_version()
 	 << version << ", which is older than " << min_flt_version()
 	 << ", the oldest OpenFlight version understood by this program.  "
 	 << ", the oldest OpenFlight version understood by this program.  "
@@ -293,7 +295,7 @@ check_version() const {
     return false;
     return false;
   }
   }
   
   
-  if (version > max_flt_version()) {
+  if (version > max_flt_version() && !IS_NEARLY_EQUAL(version, max_flt_version())) {
     nout << "Warning!  The version number of this file appears to be "
     nout << "Warning!  The version number of this file appears to be "
 	 << version << ", which is newer than " << max_flt_version()
 	 << version << ", which is newer than " << max_flt_version()
 	 << ", the newest OpenFlight version understood by this program.  "
 	 << ", the newest OpenFlight version understood by this program.  "