refactor: expand AUTO_VAR macro

This commit is contained in:
Tropical
2026-03-29 23:59:05 -05:00
parent a330ecdcbb
commit e45151ae64
201 changed files with 1051 additions and 1055 deletions

View File

@@ -99,7 +99,7 @@ bool StructurePiece::isInChunk(ChunkPos* pos) {
StructurePiece* StructurePiece::findCollisionPiece(
std::list<StructurePiece*>* pieces, BoundingBox* box) {
for (AUTO_VAR(it, pieces->begin()); it != pieces->end(); it++) {
for (auto it = pieces->begin(); it != pieces->end(); it++) {
StructurePiece* piece = *it;
if (piece->getBoundingBox() != NULL &&
piece->getBoundingBox()->intersects(box)) {