golf: gg Disney

This commit is contained in:
Aidan 2014-06-09 16:21:41 -04:00 committed by Joey Z
parent 5204967541
commit b7092f7bc4
2 changed files with 8 additions and 2 deletions

View file

@ -108,8 +108,7 @@ class DistributedGolfCourseAI(DistributedObjectAI.DistributedObjectAI, FSM):
self.currentHole.requestDelete()
self.currentHole = None
self.ignoreAll()
from toontown.golf import GolfManagerAI
GolfManagerAI.GolfManagerAI().removeCourse(self)
self.air.deallocateZone(self.zoneId)
if self.__barrier:
self.__barrier.cleanup()
self.__barrier = None

View file

@ -11,5 +11,12 @@ class GZHoodAI(HoodAI):
self.golfKarts = []
self.createZone()
def createZone(self):
self.spawnObjects()
def spawnObjects(self):
HoodAI.spawnObjects(self)
filename = self.air.genDNAFileName(self.HOOD)
self.air.dnaSpawner.spawnObjects(filename, self.HOOD)