adds activePlayerList and runningPlayerList (XI) - BUGGY!!! - last sable rev866
This commit is contained in:
1 parent
0dcd313c9d
commit
0ea06c8a96
3 files changed
+140
-40
No files matched your search
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user