|
|
@@ -557,6 +557,16 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|
|
visibleZoneNums = list2dict([zoneNum])
|
|
|
visibleZoneNums.update(list2dict(zoneEnt.getVisibleZoneNums()))
|
|
|
|
|
|
+ if not __debug__:
|
|
|
+ # HACK
|
|
|
+ # make sure that the visibility list includes the zone that the toon
|
|
|
+ # is standing in
|
|
|
+ if self.lastToonZone not in visibleZoneNums:
|
|
|
+ self.notify.warning('adding zoneNum %s to visibility list '
|
|
|
+ 'because toon is standing in that zone!' %
|
|
|
+ self.lastToonZone)
|
|
|
+ visibleZoneNums.update(list2dict([self.lastToonZone]))
|
|
|
+
|
|
|
# we should not have the uberZone in the list at this point
|
|
|
assert not 0 in visibleZoneNums
|
|
|
|