mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 15:15:33 +00:00
refactor: expand AUTO_VAR macro
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user