From abf45686a1187bf0da3fc14464a85ecf0f3ae1a7 Mon Sep 17 00:00:00 2001 From: Alli Date: Fri, 8 Jan 2010 19:05:26 +1300 Subject: [PATCH] minimap shroud --- OpenRa.Game/Graphics/Minimap.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OpenRa.Game/Graphics/Minimap.cs b/OpenRa.Game/Graphics/Minimap.cs index fbb13f3ef9..c9a12c6825 100644 --- a/OpenRa.Game/Graphics/Minimap.cs +++ b/OpenRa.Game/Graphics/Minimap.cs @@ -76,7 +76,14 @@ namespace OpenRa.Game.Graphics foreach (var a in Game.world.Actors.Where(a => a.traits.Contains())) bitmap.SetPixel(a.Location.X, a.Location.Y, Chat.paletteColors[(int)a.Owner.Palette]); - + + for (var y = 0; y < 128; y++ ) + for (var x = 0; x < 128; x++ ) + { + if( ! Game.LocalPlayer.Shroud.IsExplored(new int2(x,y))) + bitmap.SetPixel(x, y, Color.Black); + } + sheet.Texture.SetData(bitmap); }