custom animation framerates

This commit is contained in:
Chris Forbes
2010-03-07 14:12:58 +13:00
parent 053137bf43
commit 2456739148
3 changed files with 14 additions and 8 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Graphics
while( timeUntilNextFrame <= 0 )
{
tickFunc();
timeUntilNextFrame += 40; // 25 fps == 40 ms
timeUntilNextFrame += CurrentSequence != null ? CurrentSequence.Speed : 40; // 25 fps == 40 ms
}
}
}