Fixed dealer position for network games.
This commit is contained in:
+3
-1
@@ -52,15 +52,17 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
|
||||
PlayerDataList::const_iterator player_end = playerDataList.end();
|
||||
|
||||
bool dealerFound = false;
|
||||
i = 0;
|
||||
while (player_i != player_end)
|
||||
{
|
||||
if ((*player_i)->GetUniqueId() == startData.startDealerPlayerId)
|
||||
{
|
||||
dealerPosition = (*player_i)->GetNumber();
|
||||
dealerPosition = i;
|
||||
dealerFound = true;
|
||||
break;
|
||||
}
|
||||
++player_i;
|
||||
++i;
|
||||
}
|
||||
assert(dealerFound);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user