Only update vis for actors in the world. Fixes #2726.

This commit is contained in:
Paul Chote
2013-06-22 13:05:46 +12:00
parent b95cd0c91f
commit 9adfb56f65

View File

@@ -135,6 +135,10 @@ namespace OpenRA.Traits
public void UpdateVisibility(Actor a)
{
// Actors outside the world don't have any vis
if (!a.IsInWorld)
return;
RemoveVisibility(a);
AddVisibility(a);
}