A network game is now automatically filled up with computer players up to the configured maximum number of players. This should maybe be optional?

This commit is contained in:
lotodore
2007-08-11 20:24:08 +00:00
parent 9afc115bc2
commit 58c6bc7ddb
4 changed files with 129 additions and 55 deletions
+3 -3
View File
@@ -194,8 +194,8 @@ boost::shared_ptr<PlayerInterface> Game::getPlayerByUniqueId(unsigned id)
boost::shared_ptr<PlayerInterface> Game::getCurrentPlayer()
{
int curPlayerNum = getCurrentHand()->getCurrentBeRo()->getPlayersTurn();
assert(curPlayerNum < getStartQuantityPlayers());
return getPlayerArray()[curPlayerNum];
int curPlayerNum = getCurrentHand()->getCurrentBeRo()->getPlayersTurn();
assert(curPlayerNum < getStartQuantityPlayers());
return getPlayerArray()[curPlayerNum];
}