git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1183 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user