ref: c81a7aa1621326827088142fa5cc484bbcca9535
parent: d9c329eb3cfd64c4731a7f59bd52c7e71c3e6baf
author: yenatch <yenatch@gmail.com>
date: Sun May 28 19:52:23 EDT 2017
pokemon_animation_graphics: remove declarations from for loops
--- a/tools/pokemon_animation_graphics.c
+++ b/tools/pokemon_animation_graphics.c
@@ -43,7 +43,8 @@
}
bool compare_tile(uint8_t *tile, uint8_t *other) {- for (int j = 0; j < 16; j++) {+ int j;
+ for (j = 0; j < 16; j++) { if (tile[j] != other[j]) {return false;
}
@@ -58,7 +59,8 @@
return preferred_tile_id;
}
}
- for (int i = 0; i < num_tiles; i++) {+ int i;
+ for (i = 0; i < num_tiles; i++) {uint8_t *other = &tiles[i * 16];
if (compare_tile(tile, other)) {return i;
--
⑨