From 42a83582431602435818852010c527873f6cd8c5 Mon Sep 17 00:00:00 2001 From: doitux Date: Tue, 25 Sep 2007 11:01:48 +0000 Subject: [PATCH] adds activePlayerList and runningPlayerList (VII) - BUGGY !!! please checkout rev856 for game play --- src/game.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index 691ac27a..2fb95ad7 100755 --- a/src/game.cpp +++ b/src/game.cpp @@ -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; isetMyAction(0);