fix broken vis of units in shellmap

This commit is contained in:
Chris Forbes
2010-04-16 21:31:30 +12:00
parent b6dbc8d6c4
commit 4d46c2bb22

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Traits.Render
public IEnumerable<Renderable> ModifyRender(Actor self, IEnumerable<Renderable> r)
{
if (self.Owner == self.World.LocalPlayer || shroud.visibleCells[self.Location.X, self.Location.Y] > 0)
if (self.World.LocalPlayer == null || self.Owner == self.World.LocalPlayer || shroud.visibleCells[self.Location.X, self.Location.Y] > 0)
return r;
return new Renderable[] { };