From 05f73ce836c75731b3c7f686dc919f15e2e356ea Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 7 Nov 2007 02:09:08 +0000 Subject: [PATCH] renaming swapWallBitMask to adjustWallBitMask --- direct/src/controls/ShipPilot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index 9ed5d05dd8..565fb47a52 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -62,7 +62,9 @@ class ShipPilot(PhysicsWalker): def setWallBitMask(self, bitMask): self.wallBitmask = bitMask - def swapWallBitMask(self, oldMask, newMask): + def adjustWallBitMask(self, oldMask, newMask): + # this will clear any bits set in oldMask and set any bits + # set in newMask self.wallBitmask = self.wallBitmask &~ oldMask self.wallBitmask |= newMask