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