summaryrefslogtreecommitdiff
path: root/replay/sv_basejob.cpp
blob: aeb0d8ed3b6594e6ba01d369c8ae31fa40c90732 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//

#include "sv_basejob.h"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

//----------------------------------------------------------------------------------------

CBaseJob::CBaseJob( JobPriority_t priority/*=JP_NORMAL*/,
				    ISpewer *pSpewer/*=g_pDefaultSpewer*/ )
:	CJob( priority ),
	CBaseSpewer( pSpewer ),
	m_nError( ERROR_NONE )
{
	m_szError[ 0 ] = '\0';
}

void CBaseJob::SetError( int nError, const char *pError )
{
	m_nError = nError;

	if ( pError )
	{
		V_strcpy( m_szError, pError );
	}
}

//----------------------------------------------------------------------------------------