adds activePlayerList and runningPlayerList (VIII) - BUGGY!!! - last sable rev856
This commit is contained in:
+4
-7
@@ -150,20 +150,17 @@ void Game::initHand()
|
||||
// Spieler mit leerem Cash auf inactive setzen
|
||||
PlayerListIterator it;
|
||||
|
||||
// cout << "id: " << actualHandID << endl;
|
||||
|
||||
for(it=activePlayerList->begin(); it!=activePlayerList->end(); it++) {
|
||||
|
||||
// cout << "player" << (*it)->getMyID() << ": " << (*it)->getMyCash() << endl;
|
||||
for(it=activePlayerList->begin(); it!=activePlayerList->end(); ) {
|
||||
|
||||
if((*it)->getMyCash() == 0) {
|
||||
// cout << "playerID: " << (*it)->getMyID() << endl;
|
||||
(*it)->setMyActiveStatus(0);
|
||||
it = activePlayerList->erase(it);
|
||||
} else {
|
||||
it++;
|
||||
}
|
||||
}
|
||||
|
||||
// cout << activePlayerList->size() << endl;
|
||||
|
||||
//Spieler Action auf 0 setzen
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
playerArray[i]->setMyAction(0);
|
||||
|
||||
Reference in New Issue
Block a user