adds activePlayerList and runningPlayerList (VII) - BUGGY !!! please checkout rev856 for game play

This commit is contained in:
doitux
2007-09-25 11:01:48 +00:00
parent 96b47972d4
commit 42a8358243
+8 -1
View File
@@ -150,13 +150,20 @@ void Game::initHand()
// Spieler mit leerem Cash auf inactive setzen
PlayerListIterator it;
for(it = activePlayerList->begin(); it != activePlayerList->end(); it++) {
// cout << "id: " << actualHandID << endl;
for(it=activePlayerList->begin(); it!=activePlayerList->end(); it++) {
// cout << "player" << (*it)->getMyID() << ": " << (*it)->getMyCash() << endl;
if((*it)->getMyCash() == 0) {
(*it)->setMyActiveStatus(0);
it = activePlayerList->erase(it);
}
}
// cout << activePlayerList->size() << endl;
//Spieler Action auf 0 setzen
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
playerArray[i]->setMyAction(0);