battle: Add missing change from previous commit
This commit is contained in:
parent
656a77f857
commit
ca58c8130a
1 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue