Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
811 B

5 years ago
//========= 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 );
}
}
//----------------------------------------------------------------------------------------