QTfrontend/gamecfgwidget.cpp
changeset 2881 70d7976fa829
parent 2762 2fbc8d35eb52
child 2882 b9aceb3fe3d6
--- a/QTfrontend/gamecfgwidget.cpp	Sun Feb 28 13:57:34 2010 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Sun Feb 28 15:41:42 2010 +0000
@@ -126,13 +126,15 @@
 		result |= 0x4000;
 	if (schemeData(14).toBool())
 		result |= 0x8000;
+	if (schemeData(15).toBool())
+		result |= 0x10000;
 
 	return result;
 }
 
 quint32 GameCFGWidget::getInitHealth() const
 {
-	return schemeData(17).toInt();
+	return schemeData(18).toInt();
 }
 
 QStringList GameCFGWidget::getFullConfig() const
@@ -140,12 +142,12 @@
 	QStringList sl;
 	sl.append("eseed " + pMapContainer->getCurrentSeed());
 	sl.append(QString("e$gmflags %1").arg(getGameFlags()));
-	sl.append(QString("e$damagepct %1").arg(schemeData(15).toInt()));
-	sl.append(QString("e$turntime %1").arg(schemeData(16).toInt() * 1000));
-	sl.append(QString("e$minestime %1").arg(schemeData(20).toInt() * 1000));
-	sl.append(QString("e$landadds %1").arg(schemeData(21).toInt()));
-	sl.append(QString("e$sd_turns %1").arg(schemeData(18).toInt()));
-	sl.append(QString("e$casefreq %1").arg(schemeData(19).toInt()));
+	sl.append(QString("e$damagepct %1").arg(schemeData(16).toInt()));
+	sl.append(QString("e$turntime %1").arg(schemeData(17).toInt() * 1000));
+	sl.append(QString("e$minestime %1").arg(schemeData(21).toInt() * 1000));
+	sl.append(QString("e$landadds %1").arg(schemeData(22).toInt()));
+	sl.append(QString("e$sd_turns %1").arg(schemeData(19).toInt()));
+	sl.append(QString("e$casefreq %1").arg(schemeData(20).toInt()));
 	sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()));
 
 	QString currentMap = pMapContainer->getCurrentMap();