Maximum number of players is now a constant in game_defs.h.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "localboard.h"
|
||||
|
||||
#include "localhand.h"
|
||||
#include <game_defs.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -40,7 +41,7 @@ void LocalBoard::collectSets() {
|
||||
|
||||
sets = 0;
|
||||
int i;
|
||||
for(i=0; i<actualHand->getGuiInterface()->getMaxQuantityPlayers(); i++) sets += playerArray[i]->getMySet();
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) sets += playerArray[i]->getMySet();
|
||||
|
||||
}
|
||||
|
||||
@@ -48,7 +49,7 @@ void LocalBoard::collectPot() {
|
||||
int i;
|
||||
pot += sets;
|
||||
sets = 0;
|
||||
for(i=0; i<actualHand->getGuiInterface()->getMaxQuantityPlayers(); i++){ playerArray[i]->setMySetNull(); }
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user