*** empty log message ***

This commit is contained in:
Darren Ranalli 2001-04-20 17:53:36 +00:00
parent 43a93cee05
commit 7f9fc37630
2 changed files with 9 additions and 4 deletions

View File

@ -138,16 +138,21 @@ def inheritsFrom(type1, type2):
def getInheritanceLevel(type, checkNested = 1):
# if (len(type.parentTypes) == 0):
# return 0
##if type.isNested:
## level = 1+getInheritanceLevel(type.outerType, 0)
##else:
## level = 0
level = 0
if type.isNested:
level = 1+getInheritanceLevel(type.outerType, 0)
offset = getInheritanceLevel(type.outerType, 0)
else:
level = 0
offset = 0
for parentType in type.parentTypes:
level = max(level, 1+getInheritanceLevel(parentType))
if checkNested:
for nestedType in type.nestedTypes:
level = max(level, 1+getInheritanceLevel(nestedType))
return level
return level + offset
def inheritanceLevelSort(type1, type2):
level1 = getInheritanceLevel(type1)

View File

@ -40,7 +40,7 @@ def getNewRolloverFunctor(sound = None):
if sound:
roll = sound
else:
roll = loader.loadSound("phase_3/audio/sfr/GUI_rollover.mp3")
roll = loader.loadSound("phase_3/audio/sfx/GUI_rollover.mp3")
val = AudioGuiFunctor(roll)
else:
val = AudioGuiFunctor()