From da48cfe9ce51e6c518fc1f2df99f0479aa88a860 Mon Sep 17 00:00:00 2001 From: titiger Date: Mon, 20 Feb 2017 01:02:51 +0100 Subject: [PATCH] fix for #148 2. --- source/glest_map_editor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_map_editor/main.cpp b/source/glest_map_editor/main.cpp index e1ed6554e..6ae98ab88 100644 --- a/source/glest_map_editor/main.cpp +++ b/source/glest_map_editor/main.cpp @@ -1025,7 +1025,6 @@ void MainWindow::onMenuEditRandomizeHeights(wxCommandEvent &event) { return; } while(true){ - program->setUndoPoint(ctAll);//randomizeHeights(-300,400,30,3); SimpleDialog simpleDialog; simpleDialog.addValue("Initial Reset", boolToStr(randomWithReset),"(1 = true, 0 = false) If set to '0' no height reset is done before calculating"); @@ -1056,6 +1055,7 @@ void MainWindow::onMenuEditRandomizeHeights(wxCommandEvent &event) { if(randomRecursions<0) randomRecursions=0; if(randomRecursions>50) randomRecursions=50; + program->setUndoPoint(ctAll); program->randomizeMapHeights(randomWithReset, randomMinimumHeight, randomMaximumHeight, randomChanceDivider, randomRecursions); }