git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@2049 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2008-07-20 20:06:19 +00:00
parent 6f8919d301
commit 4ea033f63d
42 changed files with 247 additions and 198 deletions

View File

@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenRa.FileFormats;
using System.Drawing;
using System.Windows.Forms;
using Ijw.DirectX;
using OpenRa.Game.Graphics;
namespace OpenRa.Game
{
@@ -51,7 +49,7 @@ namespace OpenRa.Game
int dt = t - lastTime;
lastTime = t;
Range<float2> range = new Range<float2>(region.Location, region.Location + region.Size);
var range = new Range<float2>(region.Location, region.Location + region.Size);
foreach (Actor a in actors)
{
@@ -70,10 +68,7 @@ namespace OpenRa.Game
spriteRenderer.DrawSprite(image, loc, (a.owner != null) ? a.owner.Palette : 0);
}
foreach( Action<World> a in frameEndActions )
{
a( this );
}
foreach (Action<World> a in frameEndActions) a(this);
frameEndActions.Clear();
uiOverlay.Draw();