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

This commit is contained in:
chrisf
2007-07-13 17:35:07 +00:00
parent f7bff84ce2
commit c77a2588bd
21 changed files with 184 additions and 206 deletions

View File

@@ -20,18 +20,13 @@ namespace OpenRa.Game
mcvRange = UnitSheetBuilder.AddUnit("mcv");
}
int GetFacing()
{
int x = (Environment.TickCount >> 6) % 32;
return x;
//return x < 32 ? x : 63 - x;
}
int GetFacing() { return (Environment.TickCount >> 6) % 32; }
public override SheetRectangle<Sheet>[] CurrentImages
public override Sprite[] CurrentImages
{
get
{
return new SheetRectangle<Sheet>[]
return new Sprite[]
{
UnitSheetBuilder.sprites[GetFacing() + mcvRange.Value.Start]
};