Browse Source

fix a warning

SBird1337 6 years ago
parent
commit
fbc36cb2b8
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/overworld/tileset_animation/main_animator.c

+ 3
- 2
src/overworld/tileset_animation/main_animator.c View File

42
     {.tile_start = 0, .frame_length = 0, .tile_length = 0, .frame_count = 0, .image = (void *)0xFFFFFFFF},
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
     void *vram_address = (void *)(0x06000000 + (tile_skip * 0x20));
46
     void *vram_address = (void *)(0x06000000 + (tile_skip * 0x20));
47
     u8 cur_anim = 0;
47
     u8 cur_anim = 0;
48
     while (anim[cur_anim].image != (void *)0xFFFFFFFF && cur_anim < NUM_MAX_ANIMATIONS) {
48
     while (anim[cur_anim].image != (void *)0xFFFFFFFF && cur_anim < NUM_MAX_ANIMATIONS) {
78
 extern struct MapBlockset maptileset0;
78
 extern struct MapBlockset maptileset0;
79
 
79
 
80
 void main_second_animator(u16 current_frame) {
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
 void main_animator_init(void) {
85
 void main_animator_init(void) {