iff2html is working and can properly parse STR# chunks.

I also added my TSOSimulatorClient work to the trunk.
This commit is contained in:
Fatbag 2012-03-13 00:12:27 -05:00
parent a4a7b82bb7
commit 64fddcf78e
16 changed files with 963 additions and 80 deletions

View file

@ -288,8 +288,7 @@ void AdvanceFrame(Skeleton_t& Skeleton, Animation_t& Animation, float TimeDelta)
{
float Duration = (float)Animation.Motions[0].FrameCount/30;
AnimationTime += TimeDelta;
while(AnimationTime >= Duration) AnimationTime -= Duration;
if(AnimationTime<0) AnimationTime = 0; //Safe-guard against rounding error
AnimationTime = fmodf(AnimationTime, Duration); //Loop the animation
for(unsigned i=0; i<Animation.MotionsCount; i++){
unsigned BoneIndex = FindBone(Skeleton, Animation.Motions[i].BoneName, Skeleton.BoneCount);