Draw shellmap actors
This commit is contained in:
@@ -75,7 +75,8 @@ namespace OpenRA.Graphics
|
||||
world.WorldRenderer.Draw();
|
||||
if( Game.orderManager.GameStarted )
|
||||
{
|
||||
Game.chrome.Draw( world );
|
||||
if (world.LocalPlayer != null)
|
||||
Game.chrome.Draw( world );
|
||||
|
||||
if( Game.orderManager.Connection.ConnectionState == ConnectionState.NotConnected )
|
||||
Game.chrome.DrawDialog("Connection lost.");
|
||||
|
||||
@@ -23,7 +23,7 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.FileFormats;
|
||||
using OpenRA.Traits;
|
||||
|
||||
using System;
|
||||
namespace OpenRA.Graphics
|
||||
{
|
||||
public class WorldRenderer
|
||||
@@ -118,7 +118,7 @@ namespace OpenRA.Graphics
|
||||
var actors = world.FindUnits(
|
||||
new float2(bounds.Left, bounds.Top),
|
||||
new float2(bounds.Right, bounds.Bottom));
|
||||
|
||||
|
||||
var renderables = actors.SelectMany(a => a.Render())
|
||||
.OrderBy(r => r, comparer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user