Make it compile. Network mode not working currently.

This commit is contained in:
lotodore
2007-08-19 20:58:57 +00:00
parent 260182f570
commit 1d1d6480a9
8 changed files with 19 additions and 16 deletions
+3 -3
View File
@@ -24,7 +24,7 @@
#include <localenginefactory.h>
#include <clientenginefactory.h>
#include <net/clientthread.h>
#include <net/serverthread.h>
#include <net/serveracceptthread.h>
#include <sstream>
@@ -35,7 +35,7 @@ using namespace std;
Session::Session(GuiInterface *g, ConfigFile *c)
: currentGameID(0), myNetClient(0), myNetServer(0), myGui(g), myConfig(c)
{
{
}
@@ -164,7 +164,7 @@ void Session::startNetworkServer(const GameData &gameData)
assert(false);
return;
}
myNetServer = new ServerThread(*myGui, myConfig);
myNetServer = new ServerAcceptThread(*myGui, myConfig);
myNetServer->Init(
myConfig->readConfigInt("ServerPort"),
myConfig->readConfigInt("ServerUseIpv6") == 1,