summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/pokemon_animation.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pokemon_animation.c b/tools/pokemon_animation.c
index cb5766896..1d2d8c6cd 100644
--- a/tools/pokemon_animation.c
+++ b/tools/pokemon_animation.c
@@ -107,8 +107,7 @@ void make_frames(const uint8_t *tilemap, long tilemap_size, int width, struct Fr
}
bitmask->bitlength++;
}
- // I don't remember exactly why this works.
- // I think it was that the bits are read backwards, but not indexed backwards.
+ // tile order ABCDEFGHIJKLMNOP... becomes db order %HGFEDCBA %PONMLKJI ...
int last = bitmask->bitlength - 1;
bitmask->data[last / 8] >>= (7 - (last % 8));