refactor: remove heap-allocated AABBs

This commit is contained in:
orng
2026-03-28 02:58:56 -05:00
parent e48a05bb8f
commit 7101d03c6a
88 changed files with 353 additions and 387 deletions

View File

@@ -965,9 +965,9 @@ void Player::aiStep() {
if (riding != NULL && !riding->removed) {
// if the player is riding, also touch entities under the
// pig/horse
pickupArea = bb->minmax(*riding->bb).grow(1, 0, 1);
pickupArea = bb.minmax(riding->bb).grow(1, 0, 1);
} else {
pickupArea = bb->grow(1, .5, 1);
pickupArea = bb.grow(1, .5, 1);
}
std::vector<std::shared_ptr<Entity> >* entities =