// Clean Drops void CMap::CleanDrops( ) { for(UINT j=0;j<DropsList.size();j++) { CDrop* thisdrop = DropsList.at(j); if( time(NULL) - thisdrop->droptime >= 50 ) DeleteDrop( thisdrop ); } }
HRESULT CRainDropper::CheckDeadDrops () { DROPS_t *entity = m_firstDrop; while ( entity ) { if ( entity ->end[2] < ( m_origin[2] - (*m_charHeight) ) ) { entity = DeleteDrop ( entity ); if ( ! entity ) break; else continue; } entity = entity ->next; } return S_OK; }