battle: Add missing change from previous commit

This commit is contained in:
Little Cat 2023-01-10 19:03:52 -04:00
parent 656a77f857
commit ca58c8130a
No known key found for this signature in database
GPG key ID: 96455BD9C4399BE8

View file

@ -97,13 +97,14 @@ class BattlePlace(Place.Place):
if newZoneId != self.zoneId: if newZoneId != self.zoneId:
if newZoneId != None: if newZoneId != None:
if __astron__: if __astron__:
if hasattr(self, 'zoneVisDict'): # NOTE: This gets generated during the Quiet Zone transition.
visList = self.zoneVisDict[newZoneId] # See: toontown/hood/QuietZoneState.py (getCogHQViszones)
else: visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
if newZoneId not in visList: if newZoneId not in visList:
visList.append(newZoneId) visList.append(newZoneId)
if ZoneUtil.getBranchZone(newZoneId) not in visList:
visList.append(ZoneUtil.getBranchZone(newZoneId))
base.cr.sendSetZoneMsg(newZoneId, visList) base.cr.sendSetZoneMsg(newZoneId, visList)
else: else: