From 142aa57cdffca6b948a66184f4284d8669726399 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 29 Aug 2007 20:15:41 +0000 Subject: [PATCH] enabling ~run and ~turbo again --- direct/src/controls/ShipPilot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index d9593d62d2..78dc1d8cb6 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -441,9 +441,9 @@ class ShipPilot(PhysicsWalker): physVel = physObject.getVelocity() physVelLen = physVel.length() if (physVelLen!=0. - or self.__speed - or self.__slideSpeed - or self.__rotationSpeed): + or self.__speed + or self.__slideSpeed + or self.__rotationSpeed): # don't factor in dt, the physics system will do that distance = self.__speed #dt * self.__speed goForward = True @@ -472,7 +472,8 @@ class ShipPilot(PhysicsWalker): maxLen = self.ship.acceleration else: maxLen = self.ship.reverseAcceleration - if newVector.length() > maxLen: + if newVector.length() > maxLen and \ + not (debugRunning or base.localAvatar.getTurbo()): newVector.normalize() newVector *= maxLen