generalising selection, issuing of orders

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1283 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
bob
2007-07-16 01:01:45 +00:00
parent 74fb71b253
commit acba1dc8e4
9 changed files with 56 additions and 14 deletions

View File

@@ -41,14 +41,14 @@ namespace OpenRa.Game
Sprite[] images = a.CurrentImages;
if( a.location.X > range.End.X || a.location.X < range.Start.X - images[ 0 ].bounds.Width )
if( a.renderLocation.X > range.End.X || a.renderLocation.X < range.Start.X - images[ 0 ].bounds.Width )
continue;
if (a.location.Y > range.End.Y || a.location.Y < range.Start.Y - images[0].bounds.Height)
if (a.renderLocation.Y > range.End.Y || a.renderLocation.Y < range.Start.Y - images[0].bounds.Height)
continue;
foreach( Sprite image in images )
spriteRenderer.DrawSprite(image, a.location, a.palette);
spriteRenderer.DrawSprite(image, a.renderLocation, a.palette);
}
spriteRenderer.Flush();