Procházet zdrojové kódy

more includes, better hash fix

David Rose před 21 roky
rodič
revize
fab56fbd65

+ 3 - 1
direct/src/dcparser/dcParameter.cxx

@@ -216,5 +216,7 @@ generate_hash(HashGenerator &hashgen) const {
   // We specifically don't call up to DCField::generate_hash(), since
   // We specifically don't call up to DCField::generate_hash(), since
   // the parameter name is not actually significant to the hash.
   // the parameter name is not actually significant to the hash.
 
 
-  //  hashgen.add_int(get_flags());
+  if (get_flags() != 0) {
+    hashgen.add_int(get_flags());
+  }
 }
 }

+ 5 - 0
direct/src/dcparser/dcSwitch.h

@@ -21,6 +21,11 @@
 
 
 #include "dcbase.h"
 #include "dcbase.h"
 #include "dcDeclaration.h"
 #include "dcDeclaration.h"
+#include "dcPackerInterface.h"
+
+class DCParameter;
+class HashGenerator;
+class DCField;
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : DCSwitch
 //       Class : DCSwitch