formatting logs
This commit is contained in:
+13
-13
@@ -182,19 +182,19 @@ void Game::initHand()
|
||||
if(actualHand) {
|
||||
|
||||
// TODO HACK
|
||||
// for(it=seatsList->begin(); it!=seatsList->end(); it++) {
|
||||
// if (!(*it)->getMyActiveStatus())
|
||||
// {
|
||||
// if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId())
|
||||
// {
|
||||
// it_2 = it;
|
||||
// it_2++;
|
||||
// if (it_2 == seatsList->end())
|
||||
// it_2 = seatsList->begin();
|
||||
// getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID());
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
for(it=seatsList->begin(); it!=seatsList->end(); it++) {
|
||||
if (!(*it)->getMyActiveStatus())
|
||||
{
|
||||
if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId())
|
||||
{
|
||||
it_2 = it;
|
||||
it_2++;
|
||||
if (it_2 == seatsList->end())
|
||||
it_2 = seatsList->begin();
|
||||
getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete actualHand;
|
||||
actualHand = 0;
|
||||
|
||||
Reference in New Issue
Block a user