Rename metaTiles

Now the 16x16 tiles are just called tiles and the 8x8 tiles are called subTiles.
This commit is contained in:
octorock
2024-01-06 14:59:48 +01:00
parent c3b771a209
commit aced0bef69
195 changed files with 9739 additions and 9736 deletions
+3 -3
View File
@@ -34,8 +34,8 @@ void sub_08054EB8(Entity* this, ScriptExecutionContext* context) {
void sub_08054EFC(Entity* this, ScriptExecutionContext* context) {
Entity* effect;
u32 metaTilePos = COORD_TO_TILE(this) - 0x40;
SetMetaTile(SPECIAL_META_TILE_116, metaTilePos, LAYER_BOTTOM);
u32 tilePos = COORD_TO_TILE(this) - 0x40;
SetTile(SPECIAL_TILE_116, tilePos, LAYER_BOTTOM);
this->collisionLayer = LAYER_TOP;
UpdateSpriteForCollisionLayer(this);
effect = CreateFx(this, FX_BIG_EXPLOSION, 0);
@@ -157,6 +157,6 @@ void WorldEvent_17_0(void) {
void WorldEvent_17_1(void) {
if (gMenu.field_0xa != 0) {
gMenu.field_0xa = 0;
SetMetaTileType(META_TILE_TYPE_116, TILE_POS(7, 16), LAYER_BOTTOM);
SetTileType(TILE_TYPE_116, TILE_POS(7, 16), LAYER_BOTTOM);
}
}
+1 -1
View File
@@ -60,7 +60,7 @@ void sub_08055994(void) {
} else {
layer = LAYER_BOTTOM;
}
SetMetaTileType(META_TILE_TYPE_115,
SetTileType(TILE_TYPE_115,
(*(u16*)(gMenu.field_0xc + 8) >> 4 & 0x3f) | (*(u16*)(gMenu.field_0xc + 10) >> 4 & 0x3f) << 6,
layer);
sub_080553E0((u32)gMenu.field_0x4);