Kaynağa Gözat

fix a warning

SBird1337 6 yıl önce
ebeveyn
işleme
fbc36cb2b8

+ 3
- 2
src/overworld/tileset_animation/main_animator.c Dosyayı Görüntüle

@@ -42,7 +42,7 @@ const struct TilesetAnimation hesperia_second_animations[] = {
42 42
     {.tile_start = 0, .frame_length = 0, .tile_length = 0, .frame_count = 0, .image = (void *)0xFFFFFFFF},
43 43
 };
44 44
 
45
-void animate_from_structure(const struct TilesetAnimation *anim, u16 tile_skip, u16 current_frame) {
45
+void animate_from_structure(const struct TilesetAnimation *anim, u16 tile_skip) {
46 46
     void *vram_address = (void *)(0x06000000 + (tile_skip * 0x20));
47 47
     u8 cur_anim = 0;
48 48
     while (anim[cur_anim].image != (void *)0xFFFFFFFF && cur_anim < NUM_MAX_ANIMATIONS) {
@@ -78,7 +78,8 @@ extern struct MapBlockset maptileset128;
78 78
 extern struct MapBlockset maptileset0;
79 79
 
80 80
 void main_second_animator(u16 current_frame) {
81
-    animate_from_structure(hesperia_second_animations, 0x280, current_frame);
81
+    (void)current_frame;
82
+    animate_from_structure(hesperia_second_animations, 0x280);
82 83
 }
83 84
 
84 85
 void main_animator_init(void) {