Don't set index if using static map - avoids desync where map name is passed and list is set, but then index is set to 0
authornemo
Mon, 05 Sep 2011 16:20:35 -0400
changeset 5789 7643cbb88f09
parent 5788 0837a4cac4c7
child 5790 75ffa050c4f9
Don't set index if using static map - avoids desync where map name is passed and list is set, but then index is set to 0
QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp	Mon Sep 05 15:48:46 2011 -0400
+++ b/QTfrontend/mapContainer.cpp	Mon Sep 05 16:20:35 2011 -0400
@@ -662,7 +662,7 @@
 void HWMapContainer::setAllMapParameters(const QString &map, MapGenerator m, int mazesize, const QString &seed, int tmpl)
 {
     intSetMap(map);
-    intSetMapgen(m);
+    if (map[0]=='+') intSetMapgen(m);
     intSetMazeSize(mazesize);
     intSetSeed(seed);
     intSetTemplateFilter(tmpl);