From 7b0531490125eae2f6df1ff3117cd360b135372c Mon Sep 17 00:00:00 2001 From: Vincent Gee Date: Thu, 6 Nov 2014 10:44:55 -0500 Subject: [PATCH] fixed tabs --- Engine/source/T3D/tsStatic.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Engine/source/T3D/tsStatic.cpp b/Engine/source/T3D/tsStatic.cpp index 43eb1fe84..19fdb7c5b 100644 --- a/Engine/source/T3D/tsStatic.cpp +++ b/Engine/source/T3D/tsStatic.cpp @@ -520,28 +520,26 @@ void TSStatic::prepRenderImage( SceneRenderState* state ) if ((mAlphaLODStart < mAlphaLODEnd) && mAlphaLODStart > 0.1f) { if (mInvertAlphaLod) - { + { if (dist <= mAlphaLODStart) - { + { return; - } - + } if (dist < mAlphaLODEnd) - { + { mAlphaLOD = ((dist - mAlphaLODStart) / (mAlphaLODEnd - mAlphaLODStart)); - } + } } else - { + { if (dist >= mAlphaLODEnd) - { + { return; - } - + } if (dist > mAlphaLODStart) - { + { mAlphaLOD -= ((dist - mAlphaLODStart) / (mAlphaLODEnd - mAlphaLODStart)); - } + } } } }