QTfrontend/gamecfgwidget.cpp
changeset 5717 6d513913b7a9
parent 5468 8a7264a094fb
child 5925 2a9353b800cd
--- a/QTfrontend/gamecfgwidget.cpp	Wed Aug 31 11:08:03 2011 -0400
+++ b/QTfrontend/gamecfgwidget.cpp	Wed Aug 31 14:47:01 2011 -0400
@@ -215,13 +215,15 @@
         result |= 0x01000000;       // more wind
     if (schemeData(24).toBool())
         result |= 0x02000000;       // tag team
+    if (schemeData(25).toBool())
+        result |= 0x04000000;       // bottom border
 
     return result;
 }
 
 quint32 GameCFGWidget::getInitHealth() const
 {
-    return schemeData(27).toInt();
+    return schemeData(28).toInt();
 }
 
 QByteArray GameCFGWidget::getFullConfig() const
@@ -245,20 +247,20 @@
 
     bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8();
     bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8();
-    bcfg << QString("e$damagepct %1").arg(schemeData(25).toInt()).toUtf8();
-    bcfg << QString("e$turntime %1").arg(schemeData(26).toInt() * 1000).toUtf8();
-    bcfg << QString("e$sd_turns %1").arg(schemeData(28).toInt()).toUtf8();
-    bcfg << QString("e$casefreq %1").arg(schemeData(29).toInt()).toUtf8();
-    bcfg << QString("e$minestime %1").arg(schemeData(30).toInt() * 1000).toUtf8();
-    bcfg << QString("e$minesnum %1").arg(schemeData(31).toInt()).toUtf8();
-    bcfg << QString("e$minedudpct %1").arg(schemeData(32).toInt()).toUtf8();
-    bcfg << QString("e$explosives %1").arg(schemeData(33).toInt()).toUtf8();
-    bcfg << QString("e$healthprob %1").arg(schemeData(34).toInt()).toUtf8();
-    bcfg << QString("e$hcaseamount %1").arg(schemeData(35).toInt()).toUtf8();
-    bcfg << QString("e$waterrise %1").arg(schemeData(36).toInt()).toUtf8();
-    bcfg << QString("e$healthdec %1").arg(schemeData(37).toInt()).toUtf8();
-    bcfg << QString("e$ropepct %1").arg(schemeData(38).toInt()).toUtf8();
-    bcfg << QString("e$getawaytime %1").arg(schemeData(39).toInt()).toUtf8();
+    bcfg << QString("e$damagepct %1").arg(schemeData(26).toInt()).toUtf8();
+    bcfg << QString("e$turntime %1").arg(schemeData(27).toInt() * 1000).toUtf8();
+    bcfg << QString("e$sd_turns %1").arg(schemeData(29).toInt()).toUtf8();
+    bcfg << QString("e$casefreq %1").arg(schemeData(30).toInt()).toUtf8();
+    bcfg << QString("e$minestime %1").arg(schemeData(31).toInt() * 1000).toUtf8();
+    bcfg << QString("e$minesnum %1").arg(schemeData(32).toInt()).toUtf8();
+    bcfg << QString("e$minedudpct %1").arg(schemeData(33).toInt()).toUtf8();
+    bcfg << QString("e$explosives %1").arg(schemeData(34).toInt()).toUtf8();
+    bcfg << QString("e$healthprob %1").arg(schemeData(35).toInt()).toUtf8();
+    bcfg << QString("e$hcaseamount %1").arg(schemeData(36).toInt()).toUtf8();
+    bcfg << QString("e$waterrise %1").arg(schemeData(37).toInt()).toUtf8();
+    bcfg << QString("e$healthdec %1").arg(schemeData(38).toInt()).toUtf8();
+    bcfg << QString("e$ropepct %1").arg(schemeData(39).toInt()).toUtf8();
+    bcfg << QString("e$getawaytime %1").arg(schemeData(40).toInt()).toUtf8();
     bcfg << QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()).toUtf8();
     bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8();