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;
}
Exemple #2
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;
}