tweaking, fixed logic errors in the DFS vox function along with some traversal errors. Hunting down a driver crash that I somehow introduced

This commit is contained in:
MitchellHansen
2018-04-08 05:37:35 -07:00
parent 20f36d4eb1
commit 9ab0770bdb
3 changed files with 58 additions and 61 deletions

View File

@@ -16,7 +16,7 @@ ArrayMap::ArrayMap(sf::Vector3i dimensions) {
for (int x = 0; x < dimensions.x; x++) {
for (int y = 0; y < dimensions.y; y++) {
for (int z = 0; z < 1; z++) {
for (int z = 0; z < dimensions.z; z++) {
setVoxel(sf::Vector3i(x, y, z), 5);
}
}