Tutorial fix

This commit is contained in:
John 2015-08-12 19:10:45 +03:00
parent f137f3f047
commit 19608959c5

View file

@ -233,9 +233,9 @@ class DistributedDoor(DistributedObject.DistributedObject, DelayDeletable):
self.setupNametag()
def getBuilding(self):
if not hasattr(self, 'building'):
if not hasattr(self, 'building') or not self.building:
if self.doorType == DoorTypes.INT_STANDARD:
door = render.find('**/leftDoor;+s')
door = render.find('**/*leftDoor*')
self.building = door.getParent()
elif self.doorType == DoorTypes.INT_HQ:
door = render.find('**/door_0')