Fixed local network game. Now using new config options. Client sends packets deferred to allow initialization.

This commit is contained in:
lotodore
2007-08-26 12:15:10 +00:00
parent ba811cee6f
commit 87941c632a
7 changed files with 129 additions and 28 deletions
+1 -9
View File
@@ -78,15 +78,7 @@ main(int argc, char *argv[])
myServerGuiInterface->setSession(session);
}
GameData gameData;
gameData.maxNumberOfPlayers = myConfig->readConfigInt("NetNumberOfPlayers");
gameData.startMoney = myConfig->readConfigInt("NetStartCash");
gameData.smallBlind = myConfig->readConfigInt("NetSmallBlind");
gameData.handsBeforeRaise = myConfig->readConfigInt("NetHandsBeforeRaiseSmallBlind");
gameData.guiSpeed = 4;
gameData.playerActionTimeoutSec = myConfig->readConfigInt("NetTimeOutPlayerAction");
myServerGuiInterface->getSession().startNetworkServer(gameData);
myServerGuiInterface->getSession().startNetworkServer();
while (!g_pokerthTerminate)
{
myServerGuiInterface->getSession().waitForNetworkServer(100);