summaryrefslogtreecommitdiff
path: root/scripts/map/Map.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/map/Map.cs')
-rw-r--r--scripts/map/Map.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/map/Map.cs b/scripts/map/Map.cs
index 52ff588..29f5e62 100644
--- a/scripts/map/Map.cs
+++ b/scripts/map/Map.cs
@@ -49,5 +49,8 @@ public partial class Map : Node2D
public void UpdateFOV(Vector2I pos) {
fieldOfView.UpdateFOV(Map_Data, pos, fovRadius);
+ foreach (Actor actor in Map_Data.Actors) {
+ actor.Visible = Map_Data.GetTile(actor.GridPosition).IsInView;
+ }
}
}