summaryrefslogtreecommitdiff
path: root/src/pokedex.c
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-02 17:43:21 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 19:49:53 -0400
commit3a2a2b6ba98d8805df2dde059f07026dcd972326 (patch)
treedb6096a53225444a760780515a6a7a0a9a626c0c /src/pokedex.c
parent1cdd0ac199b921dc31a42c56455262b49b5076f1 (diff)
Fix issues according to feedback
Diffstat (limited to 'src/pokedex.c')
-rw-r--r--src/pokedex.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pokedex.c b/src/pokedex.c
index 6146bcc05..c9fa2f691 100644
--- a/src/pokedex.c
+++ b/src/pokedex.c
@@ -5238,20 +5238,20 @@ static void Task_ExitSearchWaitForFade(u8 taskId)
void SetSearchRectHighlight(u8 flags, u8 x, u8 y, u8 width)
{
- u16 i, temp; //This would have been better as a pointer but here we are
- u32 ptr = (u32)GetBgTilemapBuffer(3); //this should be a pointer, but this only matches as a u32.
+ u16 i, temp; //This would have been better as a pointer but here we are
+ u32 ptr = (u32)GetBgTilemapBuffer(3); //This should be a pointer, but this only matches as a u32.
for (i = 0; i < width; i++)
{
- temp = *(u16 *)(ptr + (y+0)*64 + (x+i)*2);
- temp &= 0x0fff;
- temp |= (flags << 12);
- *(u16 *)(ptr + (y+0)*64 + (x+i)*2) = temp;
-
- temp = *(u16 *)(ptr + (y+1)*64 + (x+i)*2);
- temp &= 0x0fff;
- temp |= (flags << 12);
- *(u16 *)(ptr + (y+1)*64 + (x+i)*2) = temp;
+ temp = *(u16 *)(ptr + (y + 0) * 64 + (x + i) * 2);
+ temp &= 0x0fff;
+ temp |= (flags << 12);
+ *(u16 *)(ptr + (y + 0) * 64 + (x + i) * 2) = temp;
+
+ temp = *(u16 *)(ptr + (y + 1) * 64 + (x + i) * 2);
+ temp &= 0x0fff;
+ temp |= (flags << 12);
+ *(u16 *)(ptr + (y + 1) * 64 + (x + i) * 2) = temp;
}
}