Add ability to disable the shellmap

This commit is contained in:
Tirili
2011-10-23 13:13:43 +13:00
committed by Chris Forbes
parent 6174ccc882
commit 4f505eb6a1
7 changed files with 30 additions and 6 deletions

View File

@@ -67,6 +67,10 @@ namespace OpenRA.Graphics
public void Draw()
{
RefreshPalette();
if (world.IsShellmap && !Game.Settings.Game.ShowShellmap)
return;
var bounds = Game.viewport.ViewBounds(world);
Game.Renderer.EnableScissor(bounds.Left, bounds.Top, bounds.Width, bounds.Height);