Maximum number of players is now a constant in game_defs.h.

This commit is contained in:
lotodore
2007-04-17 07:28:32 +00:00
parent 496261de7b
commit 27cd08ccb0
15 changed files with 134 additions and 115 deletions
+3 -2
View File
@@ -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(); }
}