End CTF early if no red / blue players connected

This commit is contained in:
Benau 2018-08-18 12:08:12 +08:00
parent 15a3be2dc1
commit 8b3772470a

View File

@ -419,6 +419,9 @@ video::SColor CaptureTheFlag::getColor(unsigned int kart_id) const
// ----------------------------------------------------------------------------
bool CaptureTheFlag::isRaceOver()
{
if (m_unfair_team)
return true;
if (NetworkConfig::get()->isNetworking() &&
NetworkConfig::get()->isClient())
return false;