"check for currentControls == None"

This commit is contained in:
Josh Wilson 2007-04-27 22:12:43 +00:00
parent b3001b2af2
commit d723220951

View File

@ -190,11 +190,14 @@ class ControlManager:
def collisionsOn(self):
assert self.notify.debugCall(id(self))
self.currentControls.setCollisionsActive(1)
if self.currentControls:
self.currentControls.setCollisionsActive(1)
def collisionsOff(self):
assert self.notify.debugCall(id(self))
self.currentControls.setCollisionsActive(0)
if self.currentControls:
self.currentControls.setCollisionsActive(0)
def placeOnFloor(self):
assert self.notify.debugCall(id(self))