HAX IT DOES STUFFS

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1280 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-15 17:13:35 +00:00
parent b90f1859c2
commit 0a6eaeb26f
7 changed files with 105 additions and 5 deletions

View File

@@ -25,14 +25,22 @@ namespace OpenRa.Game
public void Add(Actor a) { actors.Add(a); }
double lastTime = Environment.TickCount / 1000.0;
void Draw()
{
double t = Environment.TickCount / 1000.0;
double dt = t - lastTime;
lastTime = t;
Range<float2> range = new Range<float2>(viewport.Location, viewport.Location + viewport.Size);
foreach (Actor a in actors)
{
Sprite[] images = a.CurrentImages;
a.Tick( dt );
if (images == null)
continue;