From 2af2fbb30f86863d9f31e35895e1403e937080d9 Mon Sep 17 00:00:00 2001 From: Justin Butler Date: Mon, 18 Jul 2005 21:16:50 +0000 Subject: [PATCH] Fix for trigger sphere minimum size (wasnt working for small islands in Pirates). --- direct/src/distributed/CartesianGridBase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/direct/src/distributed/CartesianGridBase.py b/direct/src/distributed/CartesianGridBase.py index a88b79be19..28a346abe4 100755 --- a/direct/src/distributed/CartesianGridBase.py +++ b/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):