fixing bug where collision were deactivated upon releasing the ship's wheel

This commit is contained in:
Josh Wilson 2007-09-18 00:49:45 +00:00
parent 700d30e9f1
commit 5926035d84

View File

@ -611,7 +611,8 @@ class ShipPilot(PhysicsWalker):
Activate the arrow keys, etc.
"""
assert self.debugPrint("enableShipControls()")
assert self.collisionsActive
self.setCollisionsActive(1)
if __debug__:
#self.accept("control-f3", self.spawnTest) #*#
@ -638,6 +639,9 @@ class ShipPilot(PhysicsWalker):
taskName = "ShipControlsIndicator%s"%(id(self),)
taskMgr.remove(taskName)
if self.ship:
self.ship.worldVelocity = Vec3(0)
if __debug__:
self.ignore("control-f3") #*#
self.ignore("f3")