cleaned up compiler warning

This commit is contained in:
ZappoMan 2013-05-08 02:15:10 -07:00
parent de969891d8
commit cdf72711b5

View file

@ -511,7 +511,6 @@ void VoxelTree::createSphere(float radius, float xc, float yc, float zc, float v
// If you also iterate form the interior of the sphere to the radius, making // If you also iterate form the interior of the sphere to the radius, making
// larger and larger spheres you'd end up with a solid sphere. And lots of voxels! // larger and larger spheres you'd end up with a solid sphere. And lots of voxels!
float finalRadius = wantNaturalSurface ? radius : (radius + (voxelSize / 2.0));
bool lastLayer = false; bool lastLayer = false;
while (!lastLayer) { while (!lastLayer) {
lastLayer = (thisRadius + (voxelSize * 2.0) >= radius); lastLayer = (thisRadius + (voxelSize * 2.0) >= radius);