# HG changeset patch
# User nemo
# Date 1432587232 14400
# Node ID e061da85f32d7d864da1129693e0fc245ad7b084
# Parent  91d256bbd84018b4fcebd7acebee98153af9556d
call setScript update if scheme changes, due to scriptparams

diff -r 91d256bbd840 -r e061da85f32d QTfrontend/ui/widget/gamecfgwidget.cpp
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Mon May 25 22:50:38 2015 +0200
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Mon May 25 16:53:52 2015 -0400
@@ -606,6 +606,7 @@
             }
         }
     }
+    pMapContainer->setScript(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString().toUtf8(), schemeData(43).toString());
 }
 
 void GameCFGWidget::scriptChanged(int index)
diff -r 91d256bbd840 -r e061da85f32d share/hedgewars/Data/Scripts/TechMaps.lua
--- a/share/hedgewars/Data/Scripts/TechMaps.lua	Mon May 25 22:50:38 2015 +0200
+++ b/share/hedgewars/Data/Scripts/TechMaps.lua	Mon May 25 16:53:52 2015 -0400
@@ -78,15 +78,15 @@
 	if mapID == 4 then
 	---nice rope and airmines landflag testmap
     -- it'd be nice if these coordinates were stored somewhere generic so they didn't have to be edited twice. Some map array or something
-	PreviewWayPoint(337, 533)
-	PreviewWayPoint(1069, 1367)
-	PreviewWayPoint(884, 729)
-	PreviewWayPoint(1682, 464)
-	PreviewWayPoint(2773, 505)
-	PreviewWayPoint(3512, 929)
-	PreviewWayPoint(4002, 106)
-	PreviewWayPoint(3964, 1520)
-	PreviewWayPoint(2592, 1334)
+    PreviewWayPoint(337, 533)
+    PreviewWayPoint(1069, 1367)
+    PreviewWayPoint(884, 729)
+    PreviewWayPoint(1682, 464)
+    PreviewWayPoint(2773, 505)
+    PreviewWayPoint(3512, 929)
+    PreviewWayPoint(4002, 106)
+    PreviewWayPoint(3964, 1520)
+    PreviewWayPoint(2592, 1334)
 	PreviewGirder(194, 388, 7)
 	PreviewGirder(338, 334, 4)
 	PreviewGirder(484, 390, 5)