diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-09-24 22:33:39 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-09-24 22:33:39 +0200 |
commit | 4727ed20846bb3d1a9eabb27aaaa9c5524129556 (patch) | |
tree | d6206a51db95a15fd3dfadb9691c868fc6bd8bd1 /src/Generating/PieceGeneratorBFSTree.cpp | |
parent | Add BurnsInDaylight to Lua API and Monsters.ini (#4295) (diff) | |
download | cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar.gz cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar.bz2 cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar.lz cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar.xz cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.tar.zst cuberite-4727ed20846bb3d1a9eabb27aaaa9c5524129556.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/PieceGeneratorBFSTree.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Generating/PieceGeneratorBFSTree.cpp b/src/Generating/PieceGeneratorBFSTree.cpp index 1d0be3482..b6929d4b0 100644 --- a/src/Generating/PieceGeneratorBFSTree.cpp +++ b/src/Generating/PieceGeneratorBFSTree.cpp @@ -235,12 +235,11 @@ void cPieceGeneratorBFSTree::PlacePieces(int a_BlockX, int a_BlockZ, int a_MaxDe /* // DEBUG: - printf("Placed the starting piece at {%d, %d, %d}\n", a_BlockX, a_BlockY, a_BlockZ); + FLOGD("Placed the starting piece at {0}", Vector3i{a_BlockX, a_BlockY, a_BlockZ}); cCuboid Hitbox = a_OutPieces[0]->GetHitBox(); Hitbox.Sort(); - printf(" Hitbox: {%d, %d, %d} - {%d, %d, %d} (%d * %d * %d)\n", - Hitbox.p1.x, Hitbox.p1.y, Hitbox.p1.z, - Hitbox.p2.x, Hitbox.p2.y, Hitbox.p2.z, + FLOGD(" Hitbox: {0} - {1} ({2} * {3} * {4})\n", + Hitbox.p1, Hitbox.p2, Hitbox.DifX() + 1, Hitbox.DifY() + 1, Hitbox.DifZ() + 1 ); DebugConnectorPool(ConnectorPool, 0); @@ -264,12 +263,11 @@ void cPieceGeneratorBFSTree::PlacePieces(int a_BlockX, int a_BlockZ, int a_MaxDe // DEBUG: const cPlacedPiece * NewPiece = a_OutPieces.back(); const Vector3i & Coords = NewPiece->GetCoords(); - printf("Placed a new piece at {%d, %d, %d}, rotation %d\n", Coords.x, Coords.y, Coords.z, NewPiece->GetNumCCWRotations()); + FLOGD("Placed a new piece at {0}, rotation {1}\n", Coords, NewPiece->GetNumCCWRotations()); cCuboid Hitbox = NewPiece->GetHitBox(); Hitbox.Sort(); - printf(" Hitbox: {%d, %d, %d} - {%d, %d, %d} (%d * %d * %d)\n", - Hitbox.p1.x, Hitbox.p1.y, Hitbox.p1.z, - Hitbox.p2.x, Hitbox.p2.y, Hitbox.p2.z, + FLOGD(" Hitbox: {0} - {1} ({2} * {3} * {4})\n", + Hitbox.p1, Hitbox.p2, Hitbox.DifX() + 1, Hitbox.DifY() + 1, Hitbox.DifZ() + 1 ); DebugConnectorPool(ConnectorPool, NumProcessed + 1); |