aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/common/map_shared.h
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/common/map_shared.h
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/common/map_shared.h')
-rw-r--r--mp/src/utils/common/map_shared.h182
1 files changed, 91 insertions, 91 deletions
diff --git a/mp/src/utils/common/map_shared.h b/mp/src/utils/common/map_shared.h
index 08e443a0..5f2b2b62 100644
--- a/mp/src/utils/common/map_shared.h
+++ b/mp/src/utils/common/map_shared.h
@@ -1,91 +1,91 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef MAP_SHARED_H
-#define MAP_SHARED_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "ChunkFile.h"
-#include "bsplib.h"
-#include "cmdlib.h"
-
-
-struct LoadEntity_t
-{
- entity_t *pEntity;
- int nID;
- int nBaseFlags;
- int nBaseContents;
-};
-
-
-class CMapError
-{
-public:
-
- void BrushState( int brushID )
- {
- m_brushID = brushID;
- }
-
- void BrushSide( int side )
- {
- m_sideIndex = side;
- }
-
- void TextureState( const char *pTextureName )
- {
- Q_strncpy( m_textureName, pTextureName, sizeof( m_textureName ) );
- }
-
- void ClearState( void )
- {
- BrushState( 0 );
- BrushSide( 0 );
- TextureState( "Not a Parse error!" );
- }
-
- //-----------------------------------------------------------------------------
- // Purpose: Hook the map parse errors and report brush/ent/texture state
- // Input : *pErrorString -
- //-----------------------------------------------------------------------------
- void ReportError( const char *pErrorString )
- {
- Error( "Brush %i: %s\nSide %i\nTexture: %s\n", m_brushID, pErrorString, m_sideIndex, m_textureName );
- }
-
- //-----------------------------------------------------------------------------
- // Purpose: Hook the map parse errors and report brush/ent/texture state without exiting.
- // Input : pWarningString -
- //-----------------------------------------------------------------------------
- void ReportWarning( const char *pWarningString )
- {
- printf( "Brush %i, Side %i: %s\n", m_brushID, m_sideIndex, pWarningString );
- }
-
-private:
-
- int m_brushID;
- int m_sideIndex;
- char m_textureName[80];
-};
-
-
-extern CMapError g_MapError;
-extern int g_nMapFileVersion;
-
-
-// Shared mapload code.
-ChunkFileResult_t LoadEntityKeyCallback( const char *szKey, const char *szValue, LoadEntity_t *pLoadEntity );
-
-// Used by VRAD incremental lighting - only load ents from the file and
-// fill in the global entities/num_entities array.
-bool LoadEntsFromMapFile( char const *pFilename );
-
-#endif // MAP_SHARED_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef MAP_SHARED_H
+#define MAP_SHARED_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "ChunkFile.h"
+#include "bsplib.h"
+#include "cmdlib.h"
+
+
+struct LoadEntity_t
+{
+ entity_t *pEntity;
+ int nID;
+ int nBaseFlags;
+ int nBaseContents;
+};
+
+
+class CMapError
+{
+public:
+
+ void BrushState( int brushID )
+ {
+ m_brushID = brushID;
+ }
+
+ void BrushSide( int side )
+ {
+ m_sideIndex = side;
+ }
+
+ void TextureState( const char *pTextureName )
+ {
+ Q_strncpy( m_textureName, pTextureName, sizeof( m_textureName ) );
+ }
+
+ void ClearState( void )
+ {
+ BrushState( 0 );
+ BrushSide( 0 );
+ TextureState( "Not a Parse error!" );
+ }
+
+ //-----------------------------------------------------------------------------
+ // Purpose: Hook the map parse errors and report brush/ent/texture state
+ // Input : *pErrorString -
+ //-----------------------------------------------------------------------------
+ void ReportError( const char *pErrorString )
+ {
+ Error( "Brush %i: %s\nSide %i\nTexture: %s\n", m_brushID, pErrorString, m_sideIndex, m_textureName );
+ }
+
+ //-----------------------------------------------------------------------------
+ // Purpose: Hook the map parse errors and report brush/ent/texture state without exiting.
+ // Input : pWarningString -
+ //-----------------------------------------------------------------------------
+ void ReportWarning( const char *pWarningString )
+ {
+ printf( "Brush %i, Side %i: %s\n", m_brushID, m_sideIndex, pWarningString );
+ }
+
+private:
+
+ int m_brushID;
+ int m_sideIndex;
+ char m_textureName[80];
+};
+
+
+extern CMapError g_MapError;
+extern int g_nMapFileVersion;
+
+
+// Shared mapload code.
+ChunkFileResult_t LoadEntityKeyCallback( const char *szKey, const char *szValue, LoadEntity_t *pLoadEntity );
+
+// Used by VRAD incremental lighting - only load ents from the file and
+// fill in the global entities/num_entities array.
+bool LoadEntsFromMapFile( char const *pFilename );
+
+#endif // MAP_SHARED_H