QTfrontend/gamecfgwidget.cpp
changeset 2703 fbde0d971ba6
parent 2380 603965eca22b
child 2726 a84fc5113d01
--- a/QTfrontend/gamecfgwidget.cpp	Sat Jan 23 21:57:24 2010 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Sun Jan 24 07:26:03 2010 +0000
@@ -113,13 +113,15 @@
 		result |= 0x400;
 	if (schemeData(11).toBool())
 		result |= 0x800;
+	if (schemeData(12).toBool())
+		result |= 0x2000;
 
 	return result;
 }
 
 quint32 GameCFGWidget::getInitHealth() const
 {
-	return schemeData(14).toInt();
+	return schemeData(15).toInt();
 }
 
 QStringList GameCFGWidget::getFullConfig() const
@@ -127,12 +129,12 @@
 	QStringList sl;
 	sl.append("eseed " + pMapContainer->getCurrentSeed());
 	sl.append(QString("e$gmflags %1").arg(getGameFlags()));
-	sl.append(QString("e$damagepct %1").arg(schemeData(12).toInt()));
-	sl.append(QString("e$turntime %1").arg(schemeData(13).toInt() * 1000));
-	sl.append(QString("e$minestime %1").arg(schemeData(17).toInt() * 1000));
-	sl.append(QString("e$landadds %1").arg(schemeData(18).toInt()));
-	sl.append(QString("e$sd_turns %1").arg(schemeData(15).toInt()));
-	sl.append(QString("e$casefreq %1").arg(schemeData(16).toInt()));
+	sl.append(QString("e$damagepct %1").arg(schemeData(13).toInt()));
+	sl.append(QString("e$turntime %1").arg(schemeData(14).toInt() * 1000));
+	sl.append(QString("e$minestime %1").arg(schemeData(18).toInt() * 1000));
+	sl.append(QString("e$landadds %1").arg(schemeData(19).toInt()));
+	sl.append(QString("e$sd_turns %1").arg(schemeData(16).toInt()));
+	sl.append(QString("e$casefreq %1").arg(schemeData(17).toInt()));
 	sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()));
 
 	QString currentMap = pMapContainer->getCurrentMap();