Skip to content

Commit

Permalink
fix error: ISO C90 forbids mixed declarations and code in rabbyt/anim…
Browse files Browse the repository at this point in the history
…_sys.c
  • Loading branch information
Ryex committed Aug 10, 2014
1 parent 5df443c commit fc16357
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rabbyt/anim_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ float _out_bounce(float t){


float interpolate_func(AnimSlot_s * slot){
float t;
float start, end;
float x;
float s;
InterpolateAnim_data * d;
d = (InterpolateAnim_data *)(slot->anim->data);
float t;


if (d->use_global_time){
t = (system_time - d->start_time)*d->one_over_dt;
} else {
READ_SLOT(&(d->t), &t);
}

float start, end;

READ_SLOT(&(d->start), &start);
READ_SLOT(&(d->end), &end);

Expand Down Expand Up @@ -87,8 +91,7 @@ float interpolate_func(AnimSlot_s * slot){
break;
}

float x;
float s;


switch (d->inter_mode) {
case (INTER_LERP):
Expand Down

0 comments on commit fc16357

Please sign in to comment.