call setScript update if scheme changes, due to scriptparams
authornemo
Mon, 25 May 2015 16:53:52 -0400
changeset 10963 e061da85f32d
parent 10962 91d256bbd840
child 10964 493bd837dc2e
child 10965 fb2b006ba476
call setScript update if scheme changes, due to scriptparams
QTfrontend/ui/widget/gamecfgwidget.cpp
share/hedgewars/Data/Scripts/TechMaps.lua
--- 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)
--- 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)