Use >= for counter in case of some peer disconnect in between for completing race end
This commit is contained in:
parent
fa2a8bccd3
commit
3d8efcdfa1
@ -1042,7 +1042,7 @@ void ServerLobby::startedRaceOnClient(Event *event)
|
|||||||
void ServerLobby::playerFinishedResult(Event *event)
|
void ServerLobby::playerFinishedResult(Event *event)
|
||||||
{
|
{
|
||||||
m_player_ready_counter++;
|
m_player_ready_counter++;
|
||||||
if(m_player_ready_counter == STKHost::get()->getPeerCount())
|
if(m_player_ready_counter >= STKHost::get()->getPeerCount())
|
||||||
{
|
{
|
||||||
// We can't trigger the world/race exit here, since this is called
|
// We can't trigger the world/race exit here, since this is called
|
||||||
// from the protocol manager thread. So instead we force the timeout
|
// from the protocol manager thread. So instead we force the timeout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user