Browse Source

Fix for trigger sphere minimum size (wasnt working for small islands in Pirates).

Justin Butler 20 years ago
parent
commit
2af2fbb30f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/distributed/CartesianGridBase.py

+ 1 - 0
direct/src/distributed/CartesianGridBase.py

@@ -31,6 +31,7 @@ class CartesianGridBase:
         # larger than the trigger sphere that loads the grid.  This gives us some
         # room to start setting interest to the grid before we expect to see any objects
         # on it.
+        sphereRadius = max(sphereRadius, gridRadius*cellWidth)
         return 2 * (sphereRadius // cellWidth)
         
     def getZoneCellOrigin(self, zoneId):