summaryrefslogtreecommitdiff
path: root/src/code_0805EC04.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2020-11-23 22:18:05 -0800
committertheo3 <arisstephenson2@gmail.com>2020-11-23 22:18:05 -0800
commit0b52f80e4d01ce7c9104eeb9b474bc1cf77b94ed (patch)
treeb0e15b9de74870b9a8c7c2ff926931f62dbb3dc1 /src/code_0805EC04.c
parentd2d35118bca06a44f4617ececf6dd379ebf7ae53 (diff)
code_0805F9A0
Diffstat (limited to 'src/code_0805EC04.c')
-rw-r--r--src/code_0805EC04.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/code_0805EC04.c b/src/code_0805EC04.c
new file mode 100644
index 00000000..c722c57f
--- /dev/null
+++ b/src/code_0805EC04.c
@@ -0,0 +1,18 @@
+#include "entity.h"
+
+extern u8 gUnk_03000000;
+
+bool32 sub_0805EC04(Entity* this) {
+ u32 i = 1;
+ u8* l = &gUnk_03000000;
+ u32 j = 1;
+ for (; i < 0x20; i++) {
+ if (l[(i * 8) + 0x426] == 0) {
+ l[(i * 8) + 0x426] = j;
+ this->spriteSet.b1 = i;
+ this->spriteSet.b0 |= j;
+ return TRUE;
+ }
+ }
+ return FALSE;
+}