refactor: make Tile::getTileAABB return AABB

This commit is contained in:
orng
2026-03-28 00:30:07 -05:00
parent 7158fd398f
commit ddfe9b3d48
21 changed files with 25 additions and 26 deletions

View File

@@ -85,10 +85,9 @@ bool DoorTile::isCubeShaped() { return false; }
int DoorTile::getRenderShape() { return Tile::SHAPE_DOOR; }
AABB* DoorTile::getTileAABB(Level* level, int x, int y, int z) {
AABB DoorTile::getTileAABB(Level* level, int x, int y, int z) {
updateShape(level, x, y, z);
AABB* retval = Tile::getTileAABB(level, x, y, z);
return retval;
return Tile::getTileAABB(level, x, y, z);
}
std::optional<AABB> DoorTile::getAABB(Level* level, int x, int y, int z) {