aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/vbsp/normals.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/utils/vbsp/normals.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/utils/vbsp/normals.cpp')
-rw-r--r--mp/src/utils/vbsp/normals.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/mp/src/utils/vbsp/normals.cpp b/mp/src/utils/vbsp/normals.cpp
index 1696342c..3a910cb6 100644
--- a/mp/src/utils/vbsp/normals.cpp
+++ b/mp/src/utils/vbsp/normals.cpp
@@ -1,50 +1,50 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-#include "bsplib.h"
-#include "vbsp.h"
-
-
-void SaveVertexNormals( void )
-{
- int i, j;
- dface_t *f;
- texinfo_t *tex;
-
-
- g_numvertnormalindices = 0;
- g_numvertnormals = 0;
-
- for( i = 0 ;i<numfaces ; i++ )
- {
- f = &dfaces[i];
- tex = &texinfo[f->texinfo];
-
- for( j = 0; j < f->numedges; j++ )
- {
- if( g_numvertnormalindices == MAX_MAP_VERTNORMALINDICES )
- {
- Error( "g_numvertnormalindices == MAX_MAP_VERTNORMALINDICES (%d)", MAX_MAP_VERTNORMALINDICES );
- }
-
- g_vertnormalindices[g_numvertnormalindices] = g_numvertnormals;
- g_numvertnormalindices++;
- }
-
- // Add this face plane's normal.
- // Note: this doesn't do an exhaustive vertex normal match because the vrad does it.
- // The result is that a little extra memory is wasted coming out of vbsp, but it
- // goes away after vrad.
- if( g_numvertnormals == MAX_MAP_VERTNORMALS )
- {
- Error( "g_numvertnormals == MAX_MAP_VERTNORMALS (%d)", MAX_MAP_VERTNORMALS );
- }
-
- g_vertnormals[g_numvertnormals] = dplanes[f->planenum].normal;
- g_numvertnormals++;
- }
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#include "bsplib.h"
+#include "vbsp.h"
+
+
+void SaveVertexNormals( void )
+{
+ int i, j;
+ dface_t *f;
+ texinfo_t *tex;
+
+
+ g_numvertnormalindices = 0;
+ g_numvertnormals = 0;
+
+ for( i = 0 ;i<numfaces ; i++ )
+ {
+ f = &dfaces[i];
+ tex = &texinfo[f->texinfo];
+
+ for( j = 0; j < f->numedges; j++ )
+ {
+ if( g_numvertnormalindices == MAX_MAP_VERTNORMALINDICES )
+ {
+ Error( "g_numvertnormalindices == MAX_MAP_VERTNORMALINDICES (%d)", MAX_MAP_VERTNORMALINDICES );
+ }
+
+ g_vertnormalindices[g_numvertnormalindices] = g_numvertnormals;
+ g_numvertnormalindices++;
+ }
+
+ // Add this face plane's normal.
+ // Note: this doesn't do an exhaustive vertex normal match because the vrad does it.
+ // The result is that a little extra memory is wasted coming out of vbsp, but it
+ // goes away after vrad.
+ if( g_numvertnormals == MAX_MAP_VERTNORMALS )
+ {
+ Error( "g_numvertnormals == MAX_MAP_VERTNORMALS (%d)", MAX_MAP_VERTNORMALS );
+ }
+
+ g_vertnormals[g_numvertnormals] = dplanes[f->planenum].normal;
+ g_numvertnormals++;
+ }
+}