QTfrontend/netclient.cpp
changeset 84 0f6669da2fcb
parent 37 2b7f2a43b999
child 85 44d9045b26ff
--- a/QTfrontend/netclient.cpp	Mon Jul 24 14:03:51 2006 +0000
+++ b/QTfrontend/netclient.cpp	Mon Jul 24 22:37:34 2006 +0000
@@ -35,11 +35,10 @@
 #include "netclient.h"
 #include "game.h"
 
-HWNet::HWNet(int Resolution, bool Fullscreen)
+HWNet::HWNet(GameConfig * config)
 	: QObject()
 {
-	gameResolution = Resolution;
-	gameFullscreen = Fullscreen;
+	this->config = config;
 	state = nsDisconnected;
 	IRCmsg_cmd_text = new QRegExp("^[A-Z]+ :.+$");
 	IRCmsg_number_param = new QRegExp("^:\\S+ [0-9]{3} .+$");
@@ -493,7 +492,7 @@
 
 void HWNet::RunGame(const QString & seed)
 {
-	HWGame * game = new HWGame(gameResolution, gameFullscreen);
+	HWGame * game = new HWGame(config);
 	connect(game, SIGNAL(SendNet(const QByteArray &)), this, SLOT(SendNet(const QByteArray &)));
 	connect(this, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &)));
 	connect(this, SIGNAL(LocalCFG(const QString &)), game, SLOT(LocalCFG(const QString &)));