Reset server if no player in lobby between a grand prix
This commit is contained in:
parent
e1797f0572
commit
a4198536a0
@ -384,7 +384,8 @@ void ServerLobby::asynchronousUpdate()
|
||||
void ServerLobby::update(int ticks)
|
||||
{
|
||||
// Reset server to initial state if no more connected players
|
||||
if (m_state.load() > ACCEPTING_CLIENTS &&
|
||||
if ((m_state.load() > ACCEPTING_CLIENTS ||
|
||||
m_game_setup->isGrandPrixStarted()) &&
|
||||
STKHost::get()->getPeerCount() == 0 &&
|
||||
NetworkConfig::get()->getServerIdFile().empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user