Skip to content

Commit fc16357

Browse files
author
Ryex
committed
fix error: ISO C90 forbids mixed declarations and code in rabbyt/anim_sys.c
1 parent 5df443c commit fc16357

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rabbyt/anim_sys.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,21 @@ float _out_bounce(float t){
3737

3838

3939
float interpolate_func(AnimSlot_s * slot){
40+
float t;
41+
float start, end;
42+
float x;
43+
float s;
4044
InterpolateAnim_data * d;
4145
d = (InterpolateAnim_data *)(slot->anim->data);
42-
float t;
46+
4347

4448
if (d->use_global_time){
4549
t = (system_time - d->start_time)*d->one_over_dt;
4650
} else {
4751
READ_SLOT(&(d->t), &t);
4852
}
4953

50-
float start, end;
54+
5155
READ_SLOT(&(d->start), &start);
5256
READ_SLOT(&(d->end), &end);
5357

@@ -87,8 +91,7 @@ float interpolate_func(AnimSlot_s * slot){
8791
break;
8892
}
8993

90-
float x;
91-
float s;
94+
9295

9396
switch (d->inter_mode) {
9497
case (INTER_LERP):

0 commit comments

Comments
 (0)