Browse Source

"first round of bug fixes for world-split change"

Josh Wilson 18 years ago
parent
commit
cbaa8832d3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/controls/ShipPilot.py

+ 2 - 1
direct/src/controls/ShipPilot.py

@@ -110,11 +110,12 @@ class ShipPilot(PhysicsWalker):
         self.pusher.setInPattern("enter%in")
         self.pusher.setInPattern("enter%in")
         self.pusher.setOutPattern("exit%in")
         self.pusher.setOutPattern("exit%in")
 
 
+        sRadius = abs((self.portPos - self.starboardPos)[0] / 2.0)
+
         cNode = CollisionNode('SP.cNode')
         cNode = CollisionNode('SP.cNode')
 
 
         """
         """
         # Front sphere:
         # Front sphere:
-        sRadius = abs((self.portPos - self.starboardPos)[0] / 2.0)
         cBowSphere = CollisionSphere(
         cBowSphere = CollisionSphere(
             0.0, self.bowPos[1]+sRadius, 0.0, sRadius)
             0.0, self.bowPos[1]+sRadius, 0.0, sRadius)