mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
25 lines
534 B
C++
25 lines
534 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================//
|
|
|
|
#include "gametrace.h"
|
|
#include "server.h"
|
|
#include "eiface.h"
|
|
|
|
// memdbgon must be the last include file in a .cpp file!!!
|
|
#include "tier0/memdbgon.h"
|
|
|
|
void CGameTrace::SetEdict( edict_t *pEdict )
|
|
{
|
|
m_pEnt = serverGameEnts->EdictToBaseEntity( pEdict );
|
|
}
|
|
|
|
|
|
edict_t* CGameTrace::GetEdict() const
|
|
{
|
|
return serverGameEnts->BaseEntityToEdict( m_pEnt );
|
|
}
|
|
|