diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2023-06-24 00:19:33 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2023-06-24 00:19:33 +0200 |
| commit | f89bb66911372a067041b66d50ac8462b7e0bd97 (patch) | |
| tree | 5c7516fcf3e30a3aaf4e63c4a28a42e7c66f4471 /src/object/giantBookLadder.c | |
| parent | f9da6344273ac86d6fd9219fac2710c968eeab37 (diff) | |
Create enums for Vvvs and MetaTiles
Diffstat (limited to 'src/object/giantBookLadder.c')
| -rw-r--r-- | src/object/giantBookLadder.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/object/giantBookLadder.c b/src/object/giantBookLadder.c index fd1e2a25..6789ecfa 100644 --- a/src/object/giantBookLadder.c +++ b/src/object/giantBookLadder.c @@ -51,36 +51,36 @@ void sub_0808E55C(GiantBookLadderEntity* this) { case 2: position = this->unk74; unaff_r9 = position - 0x101; - SetTile(0x408f, unaff_r9, super->collisionLayer); - SetTile(0x408f, position - 0x100, super->collisionLayer); - SetTile(0x406c, position - 0x102, super->collisionLayer); - SetTile(0x406d, position - 0xff, super->collisionLayer); + SetMetaTile(0x408f, unaff_r9, super->collisionLayer); + SetMetaTile(0x408f, position - 0x100, super->collisionLayer); + SetMetaTile(0x406c, position - 0x102, super->collisionLayer); + SetMetaTile(0x406d, position - 0xff, super->collisionLayer); type = super->type; uVar5 = 6; if (type != 0) { uVar5 = 4; - SetTile(0x4072, position + 0x3f, super->collisionLayer); - SetTile(0x4072, position + 0x40, super->collisionLayer); - SetTile(0x4072, position + 0x7f, super->collisionLayer); - SetTile(0x4072, position + 0x80, super->collisionLayer); + SetMetaTile(0x4072, position + 0x3f, super->collisionLayer); + SetMetaTile(0x4072, position + 0x40, super->collisionLayer); + SetMetaTile(0x4072, position + 0x7f, super->collisionLayer); + SetMetaTile(0x4072, position + 0x80, super->collisionLayer); } break; case 1: position = this->unk74; unaff_r9 = position - 1; - SetTile(0x408e, unaff_r9, super->collisionLayer); - SetTile(0x408e, position, super->collisionLayer); + SetMetaTile(0x408e, unaff_r9, super->collisionLayer); + SetMetaTile(0x408e, position, super->collisionLayer); uVar5 = 2; break; } for (uVar4 = 0; uVar4 < uVar5; uVar4++) { unaff_r9 += 0x40; - SetTile(0x408e, unaff_r9, super->collisionLayer); - SetTile(0x408e, unaff_r9 + 1, super->collisionLayer); + SetMetaTile(0x408e, unaff_r9, super->collisionLayer); + SetMetaTile(0x408e, unaff_r9 + 1, super->collisionLayer); } } u32 sub_0808E670(GiantBookLadderEntity* this) { - return GetTileType(this->unk74 - 0x101, 1); + return GetMetaTileType(this->unk74 - 0x101, 1); } |
