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.

31 lines
980 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #include "ServerPingMsgHandler.h"
  8. #include "ServerPing.h"
  9. //-----------------------------------------------------------------------------
  10. // Purpose: Constructor
  11. //-----------------------------------------------------------------------------
  12. CServerPingMsgHandlerDetails::CServerPingMsgHandlerDetails( CServerPing *baseobject, HANDLERTYPE type, void *typeinfo /*= NULL*/ )
  13. : CMsgHandler( type, typeinfo )
  14. {
  15. m_pServerPing = baseobject;
  16. }
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Process cracked message
  19. //-----------------------------------------------------------------------------
  20. bool CServerPingMsgHandlerDetails::Process( netadr_t *from, CMsgBuffer *msg )
  21. {
  22. m_pServerPing->UpdateServer(msg->GetTime());
  23. return true;
  24. }