home · contact · privacy
Recalc FOVs and their map view results only on relevant changes.
[plomrogue2] / plomrogue / mapping.py
index d4b19b1a8bad56d64aee96d1243aef6592b42e00..2b19f565378d278303a4b772bd599f4f94b9f4e8 100644 (file)
@@ -228,7 +228,7 @@ class SourcedMap(Map):
             if yxyx[0] not in obstacles:
                 obstacles[yxyx[0]] = []
             obstacles[yxyx[0]] += [yxyx[1]]
-        for yx in self:
+        for yx in self:  # TODO: iter and source_yxyx expensive, cache earlier?
             big_yx, little_yx = self.source_yxyx(yx)
             if big_yx in obstacles and little_yx in obstacles[big_yx]:
                 self.source_map_segment += 'X'