Draw shellmap actors

This commit is contained in:
Paul Chote
2010-04-09 21:49:30 +12:00
parent f116455ef6
commit 3bb69c448d
6 changed files with 36 additions and 7 deletions

View File

@@ -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);