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:
parent
b3ca051878
commit
e89a55d154
@ -75,7 +75,8 @@ public:
|
||||
// tunnel
|
||||
voxel.setMaterial(0);
|
||||
voxel.setDensity(MaterialDensityPair44::getMinDensity());
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
// solid
|
||||
voxel.setMaterial(245);
|
||||
|
@ -124,7 +124,8 @@ namespace PolyVox
|
||||
|
||||
if (di == 1) sampler.movePositiveX();
|
||||
if (di == -1) sampler.moveNegativeX();
|
||||
} else if (ty <= tz)
|
||||
}
|
||||
else if (ty <= tz)
|
||||
{
|
||||
if (j == jend) break;
|
||||
ty += deltaty;
|
||||
@ -132,7 +133,8 @@ namespace PolyVox
|
||||
|
||||
if (dj == 1) sampler.movePositiveY();
|
||||
if (dj == -1) sampler.moveNegativeY();
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
if (k == kend) break;
|
||||
tz += deltatz;
|
||||
|
Loading…
x
Reference in New Issue
Block a user