Support sprites with an internal offset.

This commit is contained in:
Paul Chote
2013-06-12 00:45:19 +12:00
parent 9b576d3fdd
commit e5bcb88b0e
3 changed files with 10 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Graphics
Flush();
currentSheet = s.sheet;
Util.FastCreateQuad(vertices, location.ToInt2(), s, paletteIndex, nv, size);
Util.FastCreateQuad(vertices, (location + s.offset).ToInt2(), s, paletteIndex, nv, size);
nv += 4;
}