golf: gg Disney
This commit is contained in:
parent
5204967541
commit
b7092f7bc4
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue