From b65658e8a487e142a6bad1eece70c03cab7958ca Mon Sep 17 00:00:00 2001 From: John Cote Date: Tue, 29 Jun 2021 00:17:23 -0400 Subject: [PATCH] interests: More fixes --- toontown/battle/BattlePlace.py | 3 +++ toontown/town/Street.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/toontown/battle/BattlePlace.py b/toontown/battle/BattlePlace.py index 21a0803..6043b4e 100644 --- a/toontown/battle/BattlePlace.py +++ b/toontown/battle/BattlePlace.py @@ -102,6 +102,9 @@ class BattlePlace(Place.Place): else: visList = base.cr.playGame.getPlace().loader.zoneVisDict[newZoneId] + if newZoneId not in visList: + visList.append(newZoneId) + base.cr.sendSetZoneMsg(newZoneId, visList) else: base.cr.sendSetZoneMsg(newZoneId) diff --git a/toontown/town/Street.py b/toontown/town/Street.py index ec9af21..553126c 100644 --- a/toontown/town/Street.py +++ b/toontown/town/Street.py @@ -360,6 +360,8 @@ class Street(BattlePlace.BattlePlace): else: visZones = [self.loader.node2zone[x] for x in self.loader.nodeDict[newZoneId]] visZones.append(ZoneUtil.getBranchZone(newZoneId)) + if newZoneId not in visZones: + visZones.append(newZoneId) base.cr.sendSetZoneMsg(newZoneId, visZones) self.notify.debug('Entering Zone %d' % newZoneId) self.zoneId = newZoneId