From c17748953aea0656c8715f0d1de06387663ce853 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Thu, 19 Aug 2004 23:19:41 +0000 Subject: [PATCH] no onscreen debug in optimize mode --- direct/src/controls/ShipPilot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index 6206b863df..7df8b967fa 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -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))