additional log in sqlite-db + preparation for replay mode
This commit is contained in:
+4
-3
@@ -40,9 +40,12 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
|
||||
|
||||
blindsList = myGameData.manualBlindsList;
|
||||
|
||||
dealerPosition = startData.startDealerPlayerId;
|
||||
|
||||
if(DEBUG_MODE) {
|
||||
startSmallBlind = 10;
|
||||
currentSmallBlind = startSmallBlind;
|
||||
dealerPosition = 4;
|
||||
}
|
||||
|
||||
int i;
|
||||
@@ -53,15 +56,13 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
|
||||
|
||||
while (player_i != player_end)
|
||||
{
|
||||
if ((*player_i)->GetUniqueId() == startData.startDealerPlayerId)
|
||||
if ((*player_i)->GetUniqueId() == dealerPosition)
|
||||
break;
|
||||
++player_i;
|
||||
}
|
||||
if (player_i == player_end)
|
||||
throw LocalException(__FILE__, __LINE__, ERR_DEALER_NOT_FOUND);
|
||||
|
||||
dealerPosition = startData.startDealerPlayerId;
|
||||
|
||||
// create board
|
||||
currentBoard = myFactory->createBoard();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user