blob: 388e29d1e7baf4ff1908f18c3a9f8d333de47c24 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "animation.h"
#include "rect.h"
void update_anim(const Animation* a, int* f, Rect* r) {
f[0]++;
if (f[0] >= a->fc * a->s)
f[0] = 0;
*r = ((const Rect*)&a[1])[f[0] / a->s];
}
|