Team Fortress 2 Source Code as on 22/4/2020
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.

30 lines
811 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #include "sv_basejob.h"
  5. // memdbgon must be the last include file in a .cpp file!!!
  6. #include "tier0/memdbgon.h"
  7. //----------------------------------------------------------------------------------------
  8. CBaseJob::CBaseJob( JobPriority_t priority/*=JP_NORMAL*/,
  9. ISpewer *pSpewer/*=g_pDefaultSpewer*/ )
  10. : CJob( priority ),
  11. CBaseSpewer( pSpewer ),
  12. m_nError( ERROR_NONE )
  13. {
  14. m_szError[ 0 ] = '\0';
  15. }
  16. void CBaseJob::SetError( int nError, const char *pError )
  17. {
  18. m_nError = nError;
  19. if ( pError )
  20. {
  21. V_strcpy( m_szError, pError );
  22. }
  23. }
  24. //----------------------------------------------------------------------------------------