summaryrefslogtreecommitdiff
path: root/src/object
diff options
context:
space:
mode:
authorjorun <contact@jorun.dev>2021-11-30 18:04:53 +0100
committerjorun <contact@jorun.dev>2021-11-30 18:04:53 +0100
commitfc20ec78fc9d01c2a7030d48fa3a3c0cfdc5902d (patch)
tree8df21ca76e33c22d74dbc20f2eb943c9a27cfc4c /src/object
parent43a22c586220e6e2405cafee7006498fa3a31dbb (diff)
cleaner decomp for sub_0809B7C0
Diffstat (limited to 'src/object')
-rw-r--r--src/object/fireplace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object/fireplace.c b/src/object/fireplace.c
index f7e9bbaa..fe2dc0d6 100644
--- a/src/object/fireplace.c
+++ b/src/object/fireplace.c
@@ -38,7 +38,8 @@ void sub_0809B7A0(Entity* this) {
}
void sub_0809B7C0(Entity* this) {
- if (GetTileTypeByEntity(this) - 0x4061 > 1) {
+ u32 tileType = GetTileTypeByEntity(this);
+ if (tileType != 0x4061 && tileType != 0x4062) {
sub_0809B7DC(this);
}
}