--- a/QTfrontend/ui/widget/gamecfgwidget.cpp Sat Oct 20 18:54:03 2012 +0400
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Sat Oct 20 22:43:25 2012 -0400
@@ -200,6 +200,10 @@
{
QList<QByteArray> bcfg;
int mapgen = pMapContainer->get_mapgen();
+ if (Scripts->currentIndex() > 0)
+ {
+ bcfg << QString("escript Scripts/Multiplayer/%1.lua").arg(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString()).toUtf8();
+ }
QString currentMap = pMapContainer->getCurrentMap();
if (currentMap.size() > 0)
@@ -212,11 +216,6 @@
}
bcfg << QString("etheme " + pMapContainer->getCurrentTheme()).toUtf8();
- if (Scripts->currentIndex() > 0)
- {
- bcfg << QString("escript Scripts/Multiplayer/%1.lua").arg(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString()).toUtf8();
- }
-
bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8();
bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8();
bcfg << QString("e$damagepct %1").arg(schemeData(26).toInt()).toUtf8();