Browse Source

Fix build

hlzbot-dirty
mittorn 9 years ago
parent
commit
af5b38cbbd
  1. 2
      dlls/teamplay_gamerules.cpp
  2. 7
      dlls/weapons.cpp

2
dlls/teamplay_gamerules.cpp

@ -149,7 +149,7 @@ void CHalfLifeTeamplay :: Think ( void )
//========================================================= //=========================================================
BOOL CHalfLifeTeamplay :: ClientCommand( CBasePlayer *pPlayer, const char *pcmd ) BOOL CHalfLifeTeamplay :: ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
{ {
#ifdef NO_VOICEGAMEMGR #ifndef NO_VOICEGAMEMGR
if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd)) if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
return TRUE; return TRUE;
#endif #endif

7
dlls/weapons.cpp

@ -538,7 +538,7 @@ void CBasePlayerItem::Materialize( void )
} }
float CBasePlayerItem::TouchGravGun( CBaseEntity *attacker, int stage ) float CBasePlayerItem::TouchGravGun( CBaseEntity *attacker, int stage )
{ {
if( stage == 2 ) if( stage == 2 )
{ {
if( (attacker->pev->origin - pev->origin ).Length() < 90 ) if( (attacker->pev->origin - pev->origin ).Length() < 90 )
@ -555,11 +555,6 @@ float CBasePlayerItem::TouchGravGun( CBaseEntity *attacker, int stage )
//if( pev->mins == pev->maxs ) //if( pev->mins == pev->maxs )
//return 0; //return 0;
return 200; return 200;
}
UTIL_SetOrigin( pev, pev->origin );// link into world.
SetTouch( &CBasePlayerItem::DefaultTouch);
SetThink( NULL );
} }
//========================================================= //=========================================================

Loading…
Cancel
Save