mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Do not attempt to start a new turn on game end
This commit is contained in:
@@ -196,7 +196,10 @@ void TurnOrderProcessor::doStartNewDay()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!activePlayer)
|
if(!activePlayer)
|
||||||
|
{
|
||||||
gameHandler->gameLobby()->setState(EServerState::GAMEPLAY_ENDED);
|
gameHandler->gameLobby()->setState(EServerState::GAMEPLAY_ENDED);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::swap(actedPlayers, awaitingPlayers);
|
std::swap(actedPlayers, awaitingPlayers);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user