Browse Source

don't crash the AI

Darren Ranalli 20 years ago
parent
commit
9506f53809
1 changed files with 6 additions and 1 deletions
  1. 6 1
      direct/src/distributed/DoInterestManager.py

+ 6 - 1
direct/src/distributed/DoInterestManager.py

@@ -31,7 +31,12 @@ class DoInterestManager(DirectObject.DirectObject):
     Top level Interest Manager
     Top level Interest Manager
     """
     """
     notify = directNotify.newCategory("DoInterestManager")
     notify = directNotify.newCategory("DoInterestManager")
-    InterestDebug = base.config.GetBool('interest-debug', True)
+    try:
+        tempbase = base
+    except:
+        tempbase = simbase
+    InterestDebug = tempbase.config.GetBool('interest-debug', True)
+    del tempbase
 
 
     # 'handle' is a number that represents a single interest set that the
     # 'handle' is a number that represents a single interest set that the
     # client has requested; the interest set may be modified
     # client has requested; the interest set may be modified