diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/tools | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/tools')
| -rw-r--r-- | mp/src/public/tools/bonelist.cpp | 142 | ||||
| -rw-r--r-- | mp/src/public/tools/bonelist.h | 108 |
2 files changed, 125 insertions, 125 deletions
diff --git a/mp/src/public/tools/bonelist.cpp b/mp/src/public/tools/bonelist.cpp index 9e8999e0..be772a95 100644 --- a/mp/src/public/tools/bonelist.cpp +++ b/mp/src/public/tools/bonelist.cpp @@ -1,72 +1,72 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-
-#include "cbase.h"
-#include "bonelist.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-CBoneList::CBoneList()
-{
- m_bShouldDelete = false;
- m_nBones = 0;
- Q_memset( m_vecPos, 0, sizeof( m_vecPos ) );
- Q_memset( m_quatRot, 0, sizeof( m_quatRot ) );
-}
-
-void CBoneList::Release()
-{
- if (m_bShouldDelete )
- {
- delete this;
- }
- else
- {
- Warning( "Called Release() on CBoneList not allocated via Alloc() method\n" );
- }
-}
-
-CBoneList *CBoneList::Alloc()
-{
- CBoneList *newList = new CBoneList;
- Assert( newList );
- if ( newList )
- {
- newList->m_bShouldDelete = true;
- }
- return newList;
-}
-
-CFlexList::CFlexList()
-{
- m_bShouldDelete = false;
- m_nNumFlexes = 0;
- Q_memset( m_flexWeights, 0, sizeof( m_flexWeights ) );
-}
-
-void CFlexList::Release()
-{
- if (m_bShouldDelete )
- {
- delete this;
- }
- else
- {
- Warning( "Called Release() on CFlexList not allocated via Alloc() method\n" );
- }
-}
-
-CFlexList *CFlexList::Alloc()
-{
- CFlexList *newList = new CFlexList;
- Assert( newList );
- if ( newList )
- {
- newList->m_bShouldDelete = true;
- }
- return newList;
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#include "cbase.h" +#include "bonelist.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +CBoneList::CBoneList() +{ + m_bShouldDelete = false; + m_nBones = 0; + Q_memset( m_vecPos, 0, sizeof( m_vecPos ) ); + Q_memset( m_quatRot, 0, sizeof( m_quatRot ) ); +} + +void CBoneList::Release() +{ + if (m_bShouldDelete ) + { + delete this; + } + else + { + Warning( "Called Release() on CBoneList not allocated via Alloc() method\n" ); + } +} + +CBoneList *CBoneList::Alloc() +{ + CBoneList *newList = new CBoneList; + Assert( newList ); + if ( newList ) + { + newList->m_bShouldDelete = true; + } + return newList; +} + +CFlexList::CFlexList() +{ + m_bShouldDelete = false; + m_nNumFlexes = 0; + Q_memset( m_flexWeights, 0, sizeof( m_flexWeights ) ); +} + +void CFlexList::Release() +{ + if (m_bShouldDelete ) + { + delete this; + } + else + { + Warning( "Called Release() on CFlexList not allocated via Alloc() method\n" ); + } +} + +CFlexList *CFlexList::Alloc() +{ + CFlexList *newList = new CFlexList; + Assert( newList ); + if ( newList ) + { + newList->m_bShouldDelete = true; + } + return newList; }
\ No newline at end of file diff --git a/mp/src/public/tools/bonelist.h b/mp/src/public/tools/bonelist.h index 45956bd4..dbb39721 100644 --- a/mp/src/public/tools/bonelist.h +++ b/mp/src/public/tools/bonelist.h @@ -1,54 +1,54 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-
-#ifndef BONELIST_H
-#define BONELIST_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "studio.h"
-
-class CBoneList
-{
-public:
-
- CBoneList();
-
- void Release();
-
- static CBoneList *Alloc();
-
-public:
-
- int m_nBones;
- Vector m_vecPos[ MAXSTUDIOBONES ];
- Quaternion m_quatRot[ MAXSTUDIOBONES ];
-
-private:
- bool m_bShouldDelete;
-};
-
-class CFlexList
-{
-public:
-
- CFlexList();
-
- void Release();
-
- static CFlexList *Alloc();
-
-public:
-
- int m_nNumFlexes;
- float m_flexWeights[ MAXSTUDIOFLEXCTRL ];
-
-private:
- bool m_bShouldDelete;
-};
-
-#endif // BONELIST_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef BONELIST_H +#define BONELIST_H +#ifdef _WIN32 +#pragma once +#endif + +#include "studio.h" + +class CBoneList +{ +public: + + CBoneList(); + + void Release(); + + static CBoneList *Alloc(); + +public: + + int m_nBones; + Vector m_vecPos[ MAXSTUDIOBONES ]; + Quaternion m_quatRot[ MAXSTUDIOBONES ]; + +private: + bool m_bShouldDelete; +}; + +class CFlexList +{ +public: + + CFlexList(); + + void Release(); + + static CFlexList *Alloc(); + +public: + + int m_nNumFlexes; + float m_flexWeights[ MAXSTUDIOFLEXCTRL ]; + +private: + bool m_bShouldDelete; +}; + +#endif // BONELIST_H |