no onscreen debug in optimize mode

This commit is contained in:
Joe Shochet 2004-08-19 23:19:41 +00:00
parent ae36ca0070
commit c17748953a

View File

@ -292,7 +292,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
self.cTrav = collisionTraverser
self.floorOffset = floorOffset = 7.0
self.wallBitmask = wallBitmask
self.floorBitmask = BitMask32().allOff() #*#floorBitmask
self.floorBitmask = floorBitmask
self.avatarRadius = avatarRadius
self.floorOffset = floorOffset
self.reach = reach
@ -738,10 +738,11 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
newVector.normalize()
newVector *= maxLen
onScreenDebug.add("newVector",
newVector)
onScreenDebug.add("newVector length",
newVector.length())
if __debug__:
onScreenDebug.add("newVector",
newVector)
onScreenDebug.add("newVector length",
newVector.length())
self.acForce.setVector(Vec3(newVector))