summaryrefslogtreecommitdiff
path: root/src/object/button.c
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-01-24 18:41:48 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-01-24 18:41:48 +0100
commitc7c6c6010c058dc4191daaf5fde446451f88484d (patch)
tree5fdb9bfc2a2ad3bfb951e59a3a4cbe1f4d3dc03a /src/object/button.c
parent97164d57cdbab0455d110cf811d6ae5254ceb871 (diff)
Decompile PushableLever
Diffstat (limited to 'src/object/button.c')
-rw-r--r--src/object/button.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/button.c b/src/object/button.c
index 316f7608..3cc892d5 100644
--- a/src/object/button.c
+++ b/src/object/button.c
@@ -101,7 +101,6 @@ void sub_08081C98(Entity* this) {
}
Entity* sub_08081D74(Entity*);
-u32 sub_080001DA(u32, u32);
u32 sub_08081CB0(Entity* this) {
u16 tmp;
@@ -114,7 +113,7 @@ u32 sub_08081CB0(Entity* this) {
} else {
tmp = GetTileType(this->field_0x74.HWORD, this->collisionLayer);
if (tmp != 0x77 && tmp != 0x79 && tmp != 0x4035) {
- this->field_0x70.HALF.LO = sub_080001DA(this->field_0x74.HWORD, this->collisionLayer);
+ this->field_0x70.HALF.LO = GetTileIndex(this->field_0x74.HWORD, this->collisionLayer);
return 1;
}
}
@@ -129,7 +128,7 @@ u32 sub_08081D28(Entity* this) {
if (this->field_0x70.HALF_U.LO == 0xFFFF) {
return 0;
}
- if (sub_080001DA(this->field_0x74.HWORD, this->collisionLayer) != this->field_0x70.HALF_U.LO) {
+ if (GetTileIndex(this->field_0x74.HWORD, this->collisionLayer) != this->field_0x70.HALF_U.LO) {
return 0;
}
}