mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
Cleanup and typo fix.
This commit is contained in:
parent
4fa3762300
commit
460587cbd7
2 changed files with 4 additions and 5 deletions
|
@ -1145,7 +1145,6 @@ class DistributedBattleBaseAI(DistributedObjectAI.DistributedObjectAI, BattleBas
|
||||||
self.acceptOnce(self.air.getAvatarExitEvent(petId),
|
self.acceptOnce(self.air.getAvatarExitEvent(petId),
|
||||||
lambda: taskMgr.doMethodLater(0,
|
lambda: taskMgr.doMethodLater(0,
|
||||||
deleted, self.uniqueName('petdel-%d' % petId)))
|
deleted, self.uniqueName('petdel-%d' % petId)))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.notify.warning('error generating petProxy: %s' % petId)
|
self.notify.warning('error generating petProxy: %s' % petId)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ notify = directNotify.newCategory('SkyUtil')
|
||||||
def cloudSkyTrack(task):
|
def cloudSkyTrack(task):
|
||||||
task.h += globalClock.getDt() * 0.25
|
task.h += globalClock.getDt() * 0.25
|
||||||
if task.cloud1.isEmpty() or task.cloud2.isEmpty():
|
if task.cloud1.isEmpty() or task.cloud2.isEmpty():
|
||||||
notify.warning("Couln't find clouds!")
|
notify.warning("Couldn't find clouds!")
|
||||||
return Task.done
|
return Task.done
|
||||||
|
|
||||||
task.cloud1.setH(task.h)
|
task.cloud1.setH(task.h)
|
||||||
|
@ -34,4 +34,4 @@ def startCloudSky(hood, parent=camera, effects=CompassEffect.PRot | CompassEffec
|
||||||
if not skyTrackTask.cloud1.isEmpty() and not skyTrackTask.cloud2.isEmpty():
|
if not skyTrackTask.cloud1.isEmpty() and not skyTrackTask.cloud2.isEmpty():
|
||||||
taskMgr.add(skyTrackTask, 'skyTrack')
|
taskMgr.add(skyTrackTask, 'skyTrack')
|
||||||
else:
|
else:
|
||||||
notify.warning("Couln't find clouds!")
|
notify.warning("Couldn't find clouds!")
|
||||||
|
|
Loading…
Reference in a new issue