End CTF early if no red / blue players connected
This commit is contained in:
parent
15a3be2dc1
commit
8b3772470a
@ -419,6 +419,9 @@ video::SColor CaptureTheFlag::getColor(unsigned int kart_id) const
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
bool CaptureTheFlag::isRaceOver()
|
bool CaptureTheFlag::isRaceOver()
|
||||||
{
|
{
|
||||||
|
if (m_unfair_team)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (NetworkConfig::get()->isNetworking() &&
|
if (NetworkConfig::get()->isNetworking() &&
|
||||||
NetworkConfig::get()->isClient())
|
NetworkConfig::get()->isClient())
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user