QTfrontend/game.cpp
changeset 97 e7c1df9cce2c
parent 87 ff213e443336
child 110 330a2dbacd67
--- a/QTfrontend/game.cpp	Sun Aug 06 15:47:20 2006 +0000
+++ b/QTfrontend/game.cpp	Sun Aug 06 15:48:48 2006 +0000
@@ -97,7 +97,7 @@
 	SENDIPC("eadd hh2 0");
 	SENDIPC("eadd hh3 0");
 	SENDIPC("eaddteam");
-	LocalCFG(1);
+	LocalCFG(2);
 	SENDIPC("ecolor 16776960");
 	SENDIPC("eadd hh0 1");
 	SENDIPC("eadd hh1 1");
@@ -238,7 +238,7 @@
 	arguments << (config->vid_Fullscreen() ? "1" : "0");
 	arguments << (config->isSoundEnabled() ? "1" : "0");
 	arguments << tr("en.txt");
-	process->start("./hwengine", arguments);
+	process->start(bindir->absolutePath() + "/hwengine", arguments);
 }
 
 void HWGame::AddTeam(const QString & teamname)
@@ -250,7 +250,7 @@
 
 QString HWGame::GetThemeBySeed()
 {
-	QFile themesfile(QString(DATA_PATH) + "/Themes/themes.cfg");
+	QFile themesfile(datadir->absolutePath() + "/Themes/themes.cfg");
 	QStringList themes;
 	if (themesfile.open(QIODevice::ReadOnly))
 	{
@@ -327,10 +327,9 @@
 	Start();
 }
 
-void HWGame::StartNet(const QString & netseed)
+void HWGame::StartNet()
 {
 	gameType = gtNet;
-	seed = netseed;
 	demo = new QByteArray;
 	Start();
 }