QTfrontend/gamecfgwidget.cpp
changeset 2017 7845c77c8d31
parent 2009 91f461c218ab
child 2023 41d3afaa20c7
--- a/QTfrontend/gamecfgwidget.cpp	Sun Apr 26 15:47:03 2009 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Thu Apr 30 20:13:44 2009 +0000
@@ -107,13 +107,17 @@
 		result |= 0x80;
 	if (schemeData(8).toBool())
 		result |= 0x100;
+	if (schemeData(9).toBool())
+		result |= 0x200;
+	if (schemeData(10).toBool())
+		result |= 0x400;
 
 	return result;
 }
 
 quint32 GameCFGWidget::getInitHealth() const
 {
-	return schemeData(11).toInt();
+	return schemeData(13).toInt();
 }
 
 QStringList GameCFGWidget::getFullConfig() const
@@ -121,10 +125,10 @@
 	QStringList sl;
 	sl.append("eseed " + pMapContainer->getCurrentSeed());
 	sl.append(QString("e$gmflags %1").arg(getGameFlags()));
-	sl.append(QString("e$damagepct %1").arg(schemeData(9).toInt()));
-	sl.append(QString("e$turntime %1").arg(schemeData(10).toInt() * 1000));
-	sl.append(QString("e$sd_turns %1").arg(schemeData(12).toInt()));
-	sl.append(QString("e$casefreq %1").arg(schemeData(13).toInt()));
+	sl.append(QString("e$damagepct %1").arg(schemeData(11).toInt()));
+	sl.append(QString("e$turntime %1").arg(schemeData(12).toInt() * 1000));
+	sl.append(QString("e$sd_turns %1").arg(schemeData(14).toInt()));
+	sl.append(QString("e$casefreq %1").arg(schemeData(15).toInt()));
 	sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()));
 
 	QString currentMap = pMapContainer->getCurrentMap();