adds activePlayerList and runningPlayerList (XI) - BUGGY!!! - last sable rev866

This commit is contained in:
doitux
2007-09-25 21:46:38 +00:00
parent 0dcd313c9d
commit 0ea06c8a96
3 changed files with 140 additions and 40 deletions
+5 -1
View File
@@ -370,12 +370,16 @@ void LocalHand::switchRounds() {
// cout << "playerID begin switchRounds(): " << getCurrentBeRo()->get
int i;
PlayerListIterator it;
PlayerListIterator it, it_1;
// refresh runningPlayerList
for(it=runningPlayerList->begin(); it!=runningPlayerList->end(); ) {
if((*it)->getMyAction() == 1 || (*it)->getMyAction() == 6) {
it = runningPlayerList->erase(it);
it_1 = it;
if(it_1 == runningPlayerList->begin()) it_1 = runningPlayerList->end();
it_1--;
getCurrentBeRo()->setCurrentPlayersTurnIt(it_1);
} else {
it++;
}