bool MMatchChannel::CheckLifePeriod() { if (GetChannelType() == MCHANNEL_TYPE_PRESET) return true; if (GetObjCount() > 0) return true; if (GetEmptyPeriod() < MTICK_CHANNEL_EMPTY_PERIOD_LIMIT) return true; return false; }
void MMatchChannel::Tick(u64 nClock) { if (IsChecksumUpdateTime(nClock)) UpdateChecksum(nClock); m_SmartRefresh.UpdateCategory(nClock); if (GetObjCount() <= 0) m_nEmptyPeriod += MTICK_CHANNEL_RUN; else m_nEmptyPeriod = 0; m_nLastTick = nClock; }
bool MMatchChannel::CheckLifePeriod() { MCHANNEL_TYPE nType = GetChannelType(); if (nType == MCHANNEL_TYPE_PRESET || nType == MCHANNEL_TYPE_DUELTOURNAMENT) return true; if (GetObjCount() > 0) return true; if (GetEmptyPeriod() < MTICK_CHANNEL_EMPTY_PERIOD_LIMIT) return true; return false; }