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 != None:
if __astron__:
if hasattr(self, 'zoneVisDict'):
visList = self.zoneVisDict[newZoneId]
else:
visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
# NOTE: This gets generated during the Quiet Zone transition.
# See: toontown/hood/QuietZoneState.py (getCogHQViszones)
visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId]
if newZoneId not in visList:
visList.append(newZoneId)
if ZoneUtil.getBranchZone(newZoneId) not in visList:
visList.append(ZoneUtil.getBranchZone(newZoneId))
base.cr.sendSetZoneMsg(newZoneId, visList)
else: