Rename 'actionc' to 'count'
This commit is contained in:
parent
d24b7aca62
commit
55e7e18c41
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ typedef struct _hexagram_anim_action {
|
||||||
|
|
||||||
typedef struct _hexagram_anim_stop {
|
typedef struct _hexagram_anim_stop {
|
||||||
hexagram_anim_action *actions;
|
hexagram_anim_action *actions;
|
||||||
size_t actionc;
|
size_t count;
|
||||||
double duration;
|
double duration;
|
||||||
} hexagram_anim_stop;
|
} hexagram_anim_stop;
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ int hexagram_anim_step(hexagram_anim *anim, hexagram_anim_progress_fn *fn) {
|
||||||
progress = (interval - offset) / anim->stops[i].duration;
|
progress = (interval - offset) / anim->stops[i].duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (a=0; a<anim->stops[i].actionc; a++) {
|
for (a=0; a<anim->stops[i].count; a++) {
|
||||||
hexagram_anim_action *action = &anim->stops[i].actions[a];
|
hexagram_anim_action *action = &anim->stops[i].actions[a];
|
||||||
|
|
||||||
if (action->flags & HEXAGRAM_ANIM_MOVE) {
|
if (action->flags & HEXAGRAM_ANIM_MOVE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue