aboutsummaryrefslogtreecommitdiff
path: root/src/engine/animator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/animator.c')
-rw-r--r--src/engine/animator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/animator.c b/src/engine/animator.c
index 3d46ea0..e293eb1 100644
--- a/src/engine/animator.c
+++ b/src/engine/animator.c
@@ -16,10 +16,10 @@ void hh_animate_hit(hh_s_rendering* in, bool hit) {
}
void hh_animate(hh_s_rendering* in, uint16_t start, uint16_t end, uint8_t step) {
- if (in->fam.palette_index >= start && in->fam.palette_index < end) {
- in->fam.palette_index += step;
+ if (in->fam.tilemap_index >= start && in->fam.tilemap_index < end) {
+ in->fam.tilemap_index += step;
} else {// rollover
- in->fam.palette_index = start;
+ in->fam.tilemap_index = start;
}
}