Skip to content

Commit

Permalink
Fixed double-request of save info form host, which was causing single…
Browse files Browse the repository at this point in the history
…-player save games to think they should have an extra human player in them.
  • Loading branch information
geoffthemedio committed Nov 18, 2015
1 parent 18405c1 commit 7f21abb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/ServerFSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,11 +1339,7 @@ WaitingForSaveData::WaitingForSaveData(my_context c) :
PlayerConnectionPtr player = *player_it;
int player_id = player->PlayerID();
bool host = server.m_networking.PlayerIsHost(player_id);
player->SendMessage(ServerSaveGameDataRequestMessage(player_id, host));
if (host) {
// resend non-synchronous response to get normal response with actual save info in reply
player->SendMessage(ServerSaveGameDataRequestMessage(player_id, false));
}
player->SendMessage(ServerSaveGameDataRequestMessage(player_id, false));
m_needed_reponses.insert(player_id);
}
}
Expand Down

0 comments on commit 7f21abb

Please sign in to comment.