void CFuncTankControls::Use(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value) { if (m_pTank) m_pTank->Use(pActivator, pCaller, useType, value); ASSERT(m_pTank != NULL); }
void CFuncTankControls :: Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ) { // pass the Use command onto the controls if ( m_pTank ) m_pTank->Use( pActivator, pCaller, useType, value ); ASSERT( m_pTank != NULL ); // if this fails, most likely means save/restore hasn't worked properly }