Browse Source

added (disabled) code to include every zone in viz when showing hidden zones in red

Darren Ranalli 22 years ago
parent
commit
0a6dd236f2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      direct/src/level/DistributedLevel.py

+ 6 - 0
direct/src/level/DistributedLevel.py

@@ -23,6 +23,8 @@ class DistributedLevel(DistributedObject.DistributedObject,
 
     WantVisibility = config.GetBool('level-visibility', 1)
     HideZones = config.GetBool('level-hidezones', 1)
+    # set this to true to get all distrib objs when showing hidden zones
+    ColorZonesAllDOs = 0
 
     # TODO: move level-model stuff to LevelMgr or FactoryLevelMgr?
     FloorCollPrefix = 'zoneFloor'
@@ -618,6 +620,10 @@ class DistributedLevel(DistributedObject.DistributedObject,
         """
         vizList is a list of visible zone numbers.
         """
+        # if we're showing all zones, get all the DOs
+        if self.fColorZones and DistributedLevel.ColorZonesAllDOs:
+            vizList = list(self.zoneNums)
+            vizList.remove(LevelConstants.UberZoneNum)
         # convert the zone numbers into their actual zoneIds
         # always include Toontown and factory uberZones
         uberZone = self.getZoneId(zoneNum=LevelConstants.UberZoneNum)