From 9534943a9ceeda1de0adb86e946e5f99a37edc7f Mon Sep 17 00:00:00 2001 From: andy5995 Date: Wed, 15 Feb 2017 13:47:53 -0600 Subject: [PATCH] fix spelling of "Divider" that shows in map editor also changed the corresponding variable names --- source/glest_map_editor/main.cpp | 16 ++++++++-------- source/glest_map_editor/main.h | 4 ++-- source/glest_map_editor/program.cpp | 4 ++-- source/glest_map_editor/program.h | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/source/glest_map_editor/main.cpp b/source/glest_map_editor/main.cpp index cfa1f9ed..e1ed6554 100644 --- a/source/glest_map_editor/main.cpp +++ b/source/glest_map_editor/main.cpp @@ -108,7 +108,7 @@ MainWindow::MainWindow(string appPath) randomWithReset=true; randomMinimumHeight=-300; randomMaximumHeight=400; - randomChanceDevider=30; + randomChanceDivider=30; randomRecursions=3; this->appPath = appPath; @@ -1031,7 +1031,7 @@ void MainWindow::onMenuEditRandomizeHeights(wxCommandEvent &event) { simpleDialog.addValue("Initial Reset", boolToStr(randomWithReset),"(1 = true, 0 = false) If set to '0' no height reset is done before calculating"); simpleDialog.addValue("Min Height", intToStr(randomMinimumHeight),"Lowest random height. example: -300 or below if you want water , 0 if you don't want water."); simpleDialog.addValue("Max Height", intToStr(randomMaximumHeight),"Max random height. A good value is 400"); - simpleDialog.addValue("Chance Devider", intToStr(randomChanceDevider),"Defines how often you get a hill or hole default is 30. Bigger number, less hills/holes."); + simpleDialog.addValue("Chance Divider", intToStr(randomChanceDivider),"Defines how often you get a hill or hole default is 30. Bigger number, less hills/holes."); simpleDialog.addValue("Smooth Recursions", intToStr(randomRecursions),"Number of recursions cycles to smooth the hills and holes. 0=randomMaximumHeight) randomMinimumHeight=randomMaximumHeight-1; - if(randomChanceDevider<1) randomChanceDevider=1; + if(randomChanceDivider<1) randomChanceDivider=1; // set randomRecursions to something useful if(randomRecursions<0) randomRecursions=0; if(randomRecursions>50) randomRecursions=50; program->randomizeMapHeights(randomWithReset, randomMinimumHeight, randomMaximumHeight, - randomChanceDevider, randomRecursions); + randomChanceDivider, randomRecursions); } catch (const exception &e) { MsgDialog(this, ToUnicode(e.what()), wxT("Exception"), wxOK | wxICON_ERROR).ShowModal(); @@ -1470,7 +1470,7 @@ BEGIN_EVENT_TABLE(MainWindow, wxFrame) EVT_MENU(miViewResetZoomAndPos, MainWindow::onMenuViewResetZoomAndPos) EVT_MENU(miViewGrid, MainWindow::onMenuViewGrid) - EVT_MENU(miViewHeightMap, MainWindow::onMenuViewHeightMap) + EVT_MENU(miViewHeightMap, MainWindow::onMenuViewHeightMap) EVT_MENU(miHideWater, MainWindow::onMenuHideWater) EVT_MENU(miViewAbout, MainWindow::onMenuViewAbout) EVT_MENU(miViewHelp, MainWindow::onMenuViewHelp) @@ -1518,7 +1518,7 @@ void GlCanvas::setCurrentGLContext() { } #endif - if(this->context) { + if(this->context) { this->SetCurrent(*this->context); } #else @@ -1657,7 +1657,7 @@ bool App::OnInit() { //#if defined(__MINGW32__) const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(argv[1]); fileparam = tmp_buf; - + #ifdef WIN32 auto_ptr wstr(Ansi2WideString(fileparam.c_str())); fileparam = utf8_encode(wstr.get()); diff --git a/source/glest_map_editor/main.h b/source/glest_map_editor/main.h index 61e14c92..0ba5f27b 100644 --- a/source/glest_map_editor/main.h +++ b/source/glest_map_editor/main.h @@ -86,7 +86,7 @@ private: DECLARE_EVENT_TABLE() public: - + MainToolBar(wxWindow *parent, wxWindowID id) : wxToolBar(parent,id) {} @@ -200,7 +200,7 @@ private: bool randomWithReset; int randomMinimumHeight; int randomMaximumHeight; - int randomChanceDevider; + int randomChanceDivider; int randomRecursions; ChangeType enabledGroup; diff --git a/source/glest_map_editor/program.cpp b/source/glest_map_editor/program.cpp index 558aee08..68cc63dc 100644 --- a/source/glest_map_editor/program.cpp +++ b/source/glest_map_editor/program.cpp @@ -561,8 +561,8 @@ void Program::shiftDown() { } -void Program::randomizeMapHeights(bool withReset,int minimumHeight, int maximumHeight, int chanceDevider, int smoothRecursions) { - if(map) map->randomizeHeights(withReset, minimumHeight, maximumHeight, chanceDevider, smoothRecursions); +void Program::randomizeMapHeights(bool withReset,int minimumHeight, int maximumHeight, int chanceDivider, int smoothRecursions) { + if(map) map->randomizeHeights(withReset, minimumHeight, maximumHeight, chanceDivider, smoothRecursions); } void Program::randomizeFactions() { diff --git a/source/glest_map_editor/program.h b/source/glest_map_editor/program.h index b6e54948..f332b419 100644 --- a/source/glest_map_editor/program.h +++ b/source/glest_map_editor/program.h @@ -151,7 +151,7 @@ public: void shiftUp(); void shiftDown(); - void randomizeMapHeights(bool withReset, int minimumHeight, int maximumHeight, int chanceDevider, int smoothRecursions);; + void randomizeMapHeights(bool withReset, int minimumHeight, int maximumHeight, int chanceDivider, int smoothRecursions);; void randomizeFactions(); void switchMapSurfaces(int surf1, int surf2); void loadMap(const string &path);