diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-03 11:26:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 11:26:20 -0400 |
commit | 0ba22ca1124bf5cf37ba2934fda4ec1a9cca02a6 (patch) | |
tree | a28f1cc1680b1368eb36f39327ca669fe5625a13 /src/pokemon_storage_system.c | |
parent | b16b91826665c500500fe1b2bf4db386ce01152a (diff) | |
parent | 886551f655ee0651b47ad81e55404059f3e2673b (diff) |
Merge pull request #1534 from GriffinRichards/doc-btrans
Document battle transition
Diffstat (limited to 'src/pokemon_storage_system.c')
-rw-r--r-- | src/pokemon_storage_system.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pokemon_storage_system.c b/src/pokemon_storage_system.c index e18a6db76..36d54123c 100644 --- a/src/pokemon_storage_system.c +++ b/src/pokemon_storage_system.c @@ -5437,16 +5437,16 @@ static bool32 WaitForWallpaperGfxLoad(void) static void DrawWallpaper(const void *tilemap, s8 direction, u8 offset) { - s16 var = offset * 256; - s16 var2 = (offset * 2) + 3; + s16 tileOffset = offset * 256; + s16 paletteNum = (offset * 2) + 3; s16 x = ((sStorage->bg2_X / 8 + 10) + (direction * 24)) & 0x3F; - CopyRectToBgTilemapBufferRect(2, tilemap, 0, 0, 0x14, 0x12, x, 2, 0x14, 0x12, 0x11, var, var2); + CopyRectToBgTilemapBufferRect(2, tilemap, 0, 0, 20, 18, x, 2, 20, 18, 17, tileOffset, paletteNum); if (direction == 0) return; if (direction > 0) - x += 0x14; + x += 20; else x -= 4; |