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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user