mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
1
This commit is contained in:
31
replay/sv_basejob.cpp
Normal file
31
replay/sv_basejob.cpp
Normal file
@@ -0,0 +1,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 );
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user