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

This commit is contained in:
bob
2007-07-12 19:46:13 +00:00
parent 4139e4dac6
commit 9a6182bb17
9 changed files with 94 additions and 11 deletions

View File

@@ -43,11 +43,20 @@ namespace OpenRa.Game
foreach (Actor a in actors)
{
if (a.currentImages == null)
if (a.CurrentImages == null)
continue;
foreach (SheetRectangle<Sheet> image in a.currentImages)
foreach (SheetRectangle<Sheet> image in a.CurrentImages)
{
if( image.sheet != sheet && sprites > 0 && sheet != null )
{
DrawBatch( vertices, indices, renderer, sheet );
vertices = new List<Vertex>();
indices = new List<ushort>();
sprites = 0;
}
sheet = image.sheet;
Util.CreateQuad(vertices, indices, a.location, image);