summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-06-28 09:46:43 -0400
committerscnorton <scnorton@biociphers.org>2017-06-28 09:46:43 -0400
commit8f84aa839874e2b69bd0e31694fad7560ca90d17 (patch)
tree9ead9cc549308ca9de8e1ac503ec7e0e3ac5c68a /src
parenta33c8cb4f38a6977d9b2d41c06555243892efa54 (diff)
sub_810C1C8
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pokeblock.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/pokeblock.c b/src/pokeblock.c
index 0f1e36ee7..775bc42ab 100755
--- a/src/pokeblock.c
+++ b/src/pokeblock.c
@@ -689,3 +689,24 @@ void sub_810C0C8(u8 taskId)
gTasks[taskId].func = sub_810BF7C;
}
}
+
+void sub_810C1C8(u8 taskId, u8 flag)
+{
+ u8 i;
+ u32 x;
+ s16 y;
+ u16 v0 = 0x1005;
+ if (!flag)
+ {
+ v0 = 0x0005;
+ }
+ y = gTasks[taskId].data[0] - gUnknown_02039248[1];
+ if ((u16)y <= 8 && y != gUnknown_02039248[0])
+ {
+ for (i=0; i<14; i++)
+ {
+ gBGTilemapBuffers[2][(2 * y + 1) * 32 + (x = i + 15)] = v0;
+ gBGTilemapBuffers[2][(2 * y + 2) * 32 + x] = v0;
+ }
+ }
+}