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

This commit is contained in:
Justin Butler 2005-07-18 21:16:50 +00:00
parent 051e017d0a
commit 2af2fbb30f

View File

@ -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):