From 6662c368591c205f745b4791f60355eba1acf599 Mon Sep 17 00:00:00 2001 From: Alexey Nabrodov Date: Thu, 5 Oct 2017 00:27:28 +0300 Subject: [PATCH] minor tweaks --- src/MapGenerator.cpp | 2 +- src/application.cpp | 7 +++---- src/main.cpp | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/MapGenerator.cpp b/src/MapGenerator.cpp index d8598bd..51ac5fb 100644 --- a/src/MapGenerator.cpp +++ b/src/MapGenerator.cpp @@ -192,7 +192,7 @@ void MapGenerator::makeStates() { std::cout<regions.size()<regions.size()); - if (oc->regions.size() > 4 * sc->regions.size()) { + if (oc->regions.size() > 4 * sc->regions.size() || (sc->regions.size() < 50 && oc->regions.size() >= sc->regions.size())) { mg::info("State Corrections", sc->regions.size()); auto oldState = sc->states[0]; mg::info("State Corrections: ", oldState->name); diff --git a/src/application.cpp b/src/application.cpp index 4682f2f..d469c8d 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -105,7 +105,7 @@ class Application { void initMapGen() { seed = std::chrono::system_clock::now().time_since_epoch().count(); mapgen = new MapGenerator(window->getSize().x, window->getSize().y); - mapgen->setSeed(18014229); + mapgen->setSeed(28167073); octaves = mapgen->getOctaveCount(); freq = mapgen->getFrequency(); nPoints = mapgen->getPointCount(); @@ -273,9 +273,8 @@ class Application { if (ImGui::Checkbox("Roads and sea pathes*", &painter->roads)) { painter->update(); } - if (ImGui::Checkbox("Walkers*", &painter->showWalkers)) { - // painter->update(); - } + ImGui::Checkbox("Walkers*", &painter->showWalkers); + ImGui::TreePop(); } ImGui::Text("\n"); diff --git a/src/main.cpp b/src/main.cpp index 85e0e66..0ab95a3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,6 @@ #include "application.cpp" -std::string VERSION = "0.5.2"; +std::string VERSION = "0.5.3"; int main() {