adds activePlayerList and runningPlayerList (VIII) - BUGGY!!! - last sable rev856

This commit is contained in:
doitux
2007-09-25 12:43:58 +00:00
parent 42a8358243
commit 4efd19c758
4 changed files with 45 additions and 34 deletions
+4 -7
View File
@@ -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);