Trying to make rejoin work, still broken due to change of unique id during game.
This commit is contained in:
@@ -595,8 +595,10 @@ ClientThread::InitGame()
|
||||
boost::shared_ptr<EngineFactory> factory(new ClientEngineFactory); // LocalEngine erstellen
|
||||
|
||||
MapPlayerDataList();
|
||||
if (GetPlayerDataList().size() != (unsigned)GetStartData().numberOfPlayers)
|
||||
throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0);
|
||||
// TODO
|
||||
//if (GetPlayerDataList().size() != (unsigned)GetStartData().numberOfPlayers)
|
||||
// throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0);
|
||||
m_startData.numberOfPlayers = GetPlayerDataList().size();
|
||||
m_game.reset(new Game(&m_gui, factory, GetPlayerDataList(), GetGameData(), GetStartData(), m_curGameNum++, m_clientLog.get()));
|
||||
// Initialize Minimum GUI speed.
|
||||
int minimumGuiSpeed = 1;
|
||||
|
||||
Reference in New Issue
Block a user