interests: More fixes

This commit is contained in:
John Cote 2021-06-29 00:17:23 -04:00
parent 18474edf5a
commit b65658e8a4
2 changed files with 5 additions and 0 deletions

View file

@ -102,6 +102,9 @@ class BattlePlace(Place.Place):
else: else:
visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId] visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
if newZoneId not in visList:
visList.append(newZoneId)
base.cr.sendSetZoneMsg(newZoneId, visList) base.cr.sendSetZoneMsg(newZoneId, visList)
else: else:
base.cr.sendSetZoneMsg(newZoneId) base.cr.sendSetZoneMsg(newZoneId)

View file

@ -360,6 +360,8 @@ class Street(BattlePlace.BattlePlace):
else: else:
visZones = [self.loader.node2zone[x] for x in self.loader.nodeDict[newZoneId]] visZones = [self.loader.node2zone[x] for x in self.loader.nodeDict[newZoneId]]
visZones.append(ZoneUtil.getBranchZone(newZoneId)) visZones.append(ZoneUtil.getBranchZone(newZoneId))
if newZoneId not in visZones:
visZones.append(newZoneId)
base.cr.sendSetZoneMsg(newZoneId, visZones) base.cr.sendSetZoneMsg(newZoneId, visZones)
self.notify.debug('Entering Zone %d' % newZoneId) self.notify.debug('Entering Zone %d' % newZoneId)
self.zoneId = newZoneId self.zoneId = newZoneId