Cleanup and typo fix.

This commit is contained in:
John Cote 2015-05-09 03:04:51 -04:00
parent 4fa3762300
commit 460587cbd7
2 changed files with 4 additions and 5 deletions

View file

@ -1145,7 +1145,6 @@ class DistributedBattleBaseAI(DistributedObjectAI.DistributedObjectAI, BattleBas
self.acceptOnce(self.air.getAvatarExitEvent(petId),
lambda: taskMgr.doMethodLater(0,
deleted, self.uniqueName('petdel-%d' % petId)))
else:
self.notify.warning('error generating petProxy: %s' % petId)

View file

@ -8,7 +8,7 @@ notify = directNotify.newCategory('SkyUtil')
def cloudSkyTrack(task):
task.h += globalClock.getDt() * 0.25
if task.cloud1.isEmpty() or task.cloud2.isEmpty():
notify.warning("Couln't find clouds!")
notify.warning("Couldn't find clouds!")
return Task.done
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():
taskMgr.add(skyTrackTask, 'skyTrack')
else:
notify.warning("Couln't find clouds!")
notify.warning("Couldn't find clouds!")