Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
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;
}