Fixed Clara

This commit is contained in:
Daniel 2015-03-23 14:49:12 +02:00
parent 22ca07fa7b
commit c2797e4260

View file

@ -990,13 +990,13 @@ class NPCMoviePlayer(DirectObject.DirectObject):
return Func(disableBlackCatListen) return Func(disableBlackCatListen)
def parsePreview(self, line): def parsePreview(self, line):
oldTrackAccess = None self.oldTrackAccess = None
def grabCurTrackAccess(oldTrackAccess = oldTrackAccess): def grabCurTrackAccess():
oldTrackAccess = copy.deepcopy(base.localAvatar.getTrackAccess()) self.oldTrackAccess = copy.deepcopy(base.localAvatar.getTrackAccess())
def restoreTrackAccess(oldTrackAccess = oldTrackAccess): def restoreTrackAccess():
base.localAvatar.setTrackAccess(oldTrackAccess) base.localAvatar.setTrackAccess(self.oldTrackAccess)
minGagLevel = ToontownBattleGlobals.MIN_LEVEL_INDEX + 1 minGagLevel = ToontownBattleGlobals.MIN_LEVEL_INDEX + 1
maxGagLevel = ToontownBattleGlobals.MAX_LEVEL_INDEX + 1 maxGagLevel = ToontownBattleGlobals.MAX_LEVEL_INDEX + 1
@ -1007,11 +1007,10 @@ class NPCMoviePlayer(DirectObject.DirectObject):
if newGagLevel == curGagLevel: if newGagLevel == curGagLevel:
return return
curGagLevel = newGagLevel curGagLevel = newGagLevel
access = [0, 0, 0, 0, 0, 0] access = []
for i in xrange(len(access)): for i in xrange(len(self.oldTrackAccess)):
if oldTrackAccess[i] == 1: access[i] = 1 if self.oldTrackAccess[i] > 0 else 0
access[i] = newGagLevel
base.localAvatar.setTrackAccess(access) base.localAvatar.setTrackAccess(access)