Applied default Visual Studio formatting to most files. This is a quick fix for the tabs vs spaces issue that messes up the formatting in any editor (esp. Linux) which handles tabs/spaces differently to Visual Studio. Some parts of the formatting look a bit worse but overall it should be better (or at least more consistent).

I didn't apply the changes to a few macro-heavy files as Visual Studio removes all indentation from macros, whereas the indentation can be handy to see nesting.
This commit is contained in:
David Williams 2015-12-26 23:11:27 +00:00
parent b3ca051878
commit e89a55d154
58 changed files with 1117 additions and 1114 deletions

View File

@ -75,7 +75,8 @@ public:
// tunnel // tunnel
voxel.setMaterial(0); voxel.setMaterial(0);
voxel.setDensity(MaterialDensityPair44::getMinDensity()); voxel.setDensity(MaterialDensityPair44::getMinDensity());
} else }
else
{ {
// solid // solid
voxel.setMaterial(245); voxel.setMaterial(245);

View File

@ -124,7 +124,8 @@ namespace PolyVox
if (di == 1) sampler.movePositiveX(); if (di == 1) sampler.movePositiveX();
if (di == -1) sampler.moveNegativeX(); if (di == -1) sampler.moveNegativeX();
} else if (ty <= tz) }
else if (ty <= tz)
{ {
if (j == jend) break; if (j == jend) break;
ty += deltaty; ty += deltaty;
@ -132,7 +133,8 @@ namespace PolyVox
if (dj == 1) sampler.movePositiveY(); if (dj == 1) sampler.movePositiveY();
if (dj == -1) sampler.moveNegativeY(); if (dj == -1) sampler.moveNegativeY();
} else }
else
{ {
if (k == kend) break; if (k == kend) break;
tz += deltatz; tz += deltatz;