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/game/server/ai_link.cpp | |
| 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/game/server/ai_link.cpp')
| -rw-r--r-- | mp/src/game/server/ai_link.cpp | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/mp/src/game/server/ai_link.cpp b/mp/src/game/server/ai_link.cpp index 7a521d37..6bf993de 100644 --- a/mp/src/game/server/ai_link.cpp +++ b/mp/src/game/server/ai_link.cpp @@ -1,57 +1,57 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#include "cbase.h"
-#include "ai_link.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-
-ASSERT_INVARIANT( ( bits_LINK_STALE_SUGGESTED | bits_LINK_OFF ) <= 255 && ( AI_MOVE_TYPE_BITS <= 255 ) );
-//-----------------------------------------------------------------------------
-// Purpose: Given the source node ID, returns the destination ID
-// Input :
-// Output :
-//-----------------------------------------------------------------------------
-int CAI_Link::DestNodeID(int srcID)
-{
- if (srcID == m_iSrcID)
- {
- return m_iDestID;
- }
- else
- {
- return m_iSrcID;
- }
-}
-
-//-----------------------------------------------------------------------------
-// Purpose: Constructor
-// Input :
-// Output :
-//-----------------------------------------------------------------------------
-CAI_Link::CAI_Link(void)
-{
- m_iSrcID = -1;
- m_iDestID = -1;
- m_LinkInfo = 0;
- m_timeStaleExpires = 0;
- m_pDynamicLink = NULL;
-
- for (int hull=0;hull<NUM_HULLS;hull++)
- {
- m_iAcceptedMoveTypes[hull] = 0;
- }
-
-};
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#include "cbase.h" +#include "ai_link.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + + +ASSERT_INVARIANT( ( bits_LINK_STALE_SUGGESTED | bits_LINK_OFF ) <= 255 && ( AI_MOVE_TYPE_BITS <= 255 ) ); +//----------------------------------------------------------------------------- +// Purpose: Given the source node ID, returns the destination ID +// Input : +// Output : +//----------------------------------------------------------------------------- +int CAI_Link::DestNodeID(int srcID) +{ + if (srcID == m_iSrcID) + { + return m_iDestID; + } + else + { + return m_iSrcID; + } +} + +//----------------------------------------------------------------------------- +// Purpose: Constructor +// Input : +// Output : +//----------------------------------------------------------------------------- +CAI_Link::CAI_Link(void) +{ + m_iSrcID = -1; + m_iDestID = -1; + m_LinkInfo = 0; + m_timeStaleExpires = 0; + m_pDynamicLink = NULL; + + for (int hull=0;hull<NUM_HULLS;hull++) + { + m_iAcceptedMoveTypes[hull] = 0; + } + +}; |