From 4b2e373e45c91e567201b917827cc0fdb1dd6eeb Mon Sep 17 00:00:00 2001 From: John Date: Wed, 10 Jun 2015 21:38:35 +0300 Subject: [PATCH] DANIEL: GSHoodAI cleanup --- toontown/hood/GSHoodAI.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/toontown/hood/GSHoodAI.py b/toontown/hood/GSHoodAI.py index 91ffd211..82d9d42e 100755 --- a/toontown/hood/GSHoodAI.py +++ b/toontown/hood/GSHoodAI.py @@ -27,17 +27,14 @@ class GSHoodAI(HoodAI.HoodAI): HoodAI.HoodAI.startup(self) self.createStartingBlocks() - self.cycleDuration = 10 self.createLeaderBoards() - self.__cycleLeaderBoards() def shutdown(self): HoodAI.HoodAI.shutdown(self) - taskMgr.removeTasksMatching(str(self) + '_leaderBoardSwitch') + taskMgr.removeTasksMatching('leaderBoardSwitch') for board in self.leaderBoards: board.delete() - del self.leaderBoards def findRacingPads(self, dnaGroup, zoneId, area, padType='racing_pad'): @@ -154,8 +151,4 @@ class GSHoodAI(HoodAI.HoodAI): self.leaderBoards = [] dnaData = self.air.dnaDataMap[self.zoneId] if dnaData.getName() == 'root': - self.leaderBoards = self.findLeaderBoards(dnaData, self.zoneId) - - def __cycleLeaderBoards(self, task = None): - messenger.send('GS_LeaderBoardSwap' + str(self.zoneId)) - taskMgr.doMethodLater(self.cycleDuration, self.__cycleLeaderBoards, str(self) + '_leaderBoardSwitch') + self.leaderBoards = self.findLeaderBoards(dnaData, self.zoneId) \ No newline at end of file