From 41f1b88fa64121f61677bc71a5d246980ae16cf1 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 21 Jan 2017 11:55:47 +0000 Subject: [PATCH] Fix client build --- cl_dll/hl/hl_baseentity.cpp | 3 +++ dlls/whandle.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cl_dll/hl/hl_baseentity.cpp b/cl_dll/hl/hl_baseentity.cpp index 9a47110f..3c797387 100644 --- a/cl_dll/hl/hl_baseentity.cpp +++ b/cl_dll/hl/hl_baseentity.cpp @@ -344,4 +344,7 @@ int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon ) { return 0; } int CBasePlayerWeapon::ExtractClipAmmo( CBasePlayerWeapon *pWeapon ) { return 0; } void CBasePlayerWeapon::RetireWeapon( void ) { } void CSoundEnt::InsertSound( int iType, const Vector &vecOrigin, int iVolume, float flDuration ) {} +float CBasePlayer::TouchGravGun( CBaseEntity*e, int s ) { return 0; } +void CBasePlayer::Touch( CBaseEntity * ) {} + void RadiusDamage( Vector vecSrc, entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, float flRadius, int iClassIgnore, int bitsDamageType ){} diff --git a/dlls/whandle.h b/dlls/whandle.h index 179297df..e86d871a 100644 --- a/dlls/whandle.h +++ b/dlls/whandle.h @@ -1,7 +1,7 @@ #ifndef WHANDLE_H #define WHANDLE_H - +#ifndef CLIENT_DLL class CBasePlayerItem; @@ -43,4 +43,8 @@ public: return Get() != other.Get(); } }; +#else +#define EHBasePlayerItem CBasePlayerItem* +#endif + #endif \ No newline at end of file