suit: fix issue with landmark buildings not being found
This commit is contained in:
parent
53e16992ac
commit
75119eee78
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ class DistributedSuitPlannerAI(DistributedObjectAI.DistributedObjectAI, SuitPlan
|
|||
self.buildingSideDoors = {}
|
||||
for p in self.frontdoorPointList:
|
||||
blockNumber = p.getLandmarkBuildingIndex()
|
||||
if p < 0:
|
||||
if p.getPointType() < 0:
|
||||
self.notify.warning('No landmark building for (%s) in zone %d' % (repr(p), self.zoneId))
|
||||
elif blockNumber in self.buildingFrontDoors:
|
||||
self.notify.warning('Multiple front doors for building %d in zone %d' % (blockNumber, self.zoneId))
|
||||
|
@ -193,7 +193,7 @@ class DistributedSuitPlannerAI(DistributedObjectAI.DistributedObjectAI, SuitPlan
|
|||
|
||||
for p in self.sidedoorPointList:
|
||||
blockNumber = p.getLandmarkBuildingIndex()
|
||||
if p < 0:
|
||||
if p.getPointType() < 0:
|
||||
self.notify.warning('No landmark building for (%s) in zone %d' % (repr(p), self.zoneId))
|
||||
elif blockNumber in self.buildingSideDoors:
|
||||
self.buildingSideDoors[blockNumber].append(p)
|
||||
|
|
Loading…
Reference in a new issue