QTfrontend/game.cpp
changeset 85 44d9045b26ff
parent 84 0f6669da2fcb
child 86 664b536a1c27
--- a/QTfrontend/game.cpp	Mon Jul 24 22:37:34 2006 +0000
+++ b/QTfrontend/game.cpp	Tue Jul 25 13:32:11 2006 +0000
@@ -40,11 +40,12 @@
 #include <QFile>
 #include "game.h"
 #include "hwconsts.h"
-#include "gameconfig.h"
+#include "gameuiconfig.h"
 
-HWGame::HWGame(GameConfig * config)
+HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg)
 {
 	this->config = config;
+	this->gamecfg = gamecfg;
 	TeamCount = 0;
 	seed = "";
 }
@@ -86,7 +87,7 @@
 	SendIPC(QString("etheme %1").arg(GetThemeBySeed()));
 	//SENDIPC("emap test");
 	SENDIPC("TL");
-	SENDIPC("e$gmflags 0");
+	SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()));
 	SENDIPC("eaddteam");
 	SendTeamConfig(0);
 	SENDIPC("ecolor 65535");