BOOL CNihilanth :: AbsorbSphere( void ) { for (int i = 0; i < N_SPHERES; i++) { if (m_hSphere[i] != NULL) { CNihilanthHVR *pSphere = (CNihilanthHVR *)((CBaseEntity *)m_hSphere[i]); pSphere->AbsorbInit( ); m_hSphere[i] = NULL; m_iActiveSpheres--; return TRUE; } } return FALSE; }
bool CNihilanth::AbsorbSphere() { for (int i = 0; i < N_SPHERES; i++) { if (m_hSphere[i] != NULL) { CNihilanthHVR *pSphere = (CNihilanthHVR *)((CBaseEntity *)m_hSphere[i]); pSphere->AbsorbInit( ); m_hSphere[i] = NULL; m_iActiveSpheres--; return true; } } return false; }