From 2098275dfab4c1536a1ed07a409cdfd54498c390 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 12 Aug 2015 22:03:58 +0300 Subject: [PATCH] Cog HQ teleport crash fix --- toontown/quest/QuestPoster.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toontown/quest/QuestPoster.py b/toontown/quest/QuestPoster.py index 00029481..5b52716c 100755 --- a/toontown/quest/QuestPoster.py +++ b/toontown/quest/QuestPoster.py @@ -179,7 +179,10 @@ class QuestPoster(DirectFrame): hqZone = {2000:2520, 1000:1507, 3000:3508, 4000:4504, 5000:5502, 7000:7503, 9000:9505} if npcZone in (-1, 0, None): - npcHood = ZoneUtil.getCanonicalHoodId(base.localAvatar.getZoneId()) + zoneId = base.localAvatar.getZoneId() + if ZoneUtil.isDynamicZone(zoneId) or ZoneUtil.isCogHQZone(zoneId): + zoneId = 2000 + npcHood = ZoneUtil.getCanonicalHoodId(zoneId) npcZone = hqZone.get(npcHood, 2520) base.cr.buildingQueryMgr.d_isSuit(npcZone, lambda isSuit: self.teleportToShopCallback(npcZone, npcHood, isSuit))