summaryrefslogtreecommitdiff
path: root/src/object/object30.c
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-08-08 20:03:12 +0300
committerTal Hayon <talhayon1@gmail.com>2022-08-08 20:03:12 +0300
commit79bae9cd8a7891dd4545649fa196aad5a36237d2 (patch)
tree1e59403522cbeeaa36c33ca34662f17c49866639 /src/object/object30.c
parent22cbdd2fd645a5525a6ef0c9b8ee8ec11af9e9aa (diff)
Various documentations
Diffstat (limited to 'src/object/object30.c')
-rw-r--r--src/object/object30.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/object/object30.c b/src/object/object30.c
index dc304585..196a3bc4 100644
--- a/src/object/object30.c
+++ b/src/object/object30.c
@@ -67,10 +67,9 @@ void Object30_Action1(Object30Entity* this) {
}
void Object30_Action2(Object30Entity* this) {
- static const u8 gUnk_08121194[] = {
- 249, 248, 247, 246, 245, 246, 247, 248,
+ static const s8 gUnk_08121194[] = {
+ -7, -8, -9, -10, -11, -10, -9, -8,
};
- u8 tmp;
switch (super->type) {
case 0:
if (this->gravity != 0) {
@@ -90,8 +89,7 @@ void Object30_Action2(Object30Entity* this) {
}
// fallthrough
case 1:
- tmp = gUnk_08121194[(super->subtimer++ >> 3) & 7];
- super->z.HALF.HI = tmp << 0x18 >> 0x18;
+ super->z.HALF.HI = gUnk_08121194[(super->subtimer++ >> 3) & 7];
if (!IsCollidingPlayer(super)) {
return;
}