QTfrontend/game.cpp
changeset 253 e7b3687fcb2c
parent 249 ff85fa029541
child 267 bf7c1503f569
--- a/QTfrontend/game.cpp	Sun Nov 19 12:29:58 2006 +0000
+++ b/QTfrontend/game.cpp	Sun Nov 19 14:11:02 2006 +0000
@@ -51,7 +51,7 @@
 	LocalCFG(teams[index]);
 }
 
-void HWGame::SendConfig()
+void HWGame::commonConfig()
 {
 	SendIPC(QString("eseed %1").arg(seed).toAscii());
 	try {
@@ -64,6 +64,11 @@
 	}
 	SendIPC("TL");
 	SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii());
+}
+
+void HWGame::SendConfig()
+{
+	commonConfig();
 
 	for (int i = 0; i < TeamCount; i++)
 	{
@@ -80,10 +85,7 @@
 
 void HWGame::SendQuickConfig()
 {
-	SendIPC(QString("eseed %1").arg(seed).toAscii());
-	SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii());
-	SendIPC("TL");
-	SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii());
+	commonConfig();
 
 	QByteArray teamscfg;
 	HWTeam team1(0);