Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Oct 4, 2017
1 parent eabcb46 commit 6662c36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/MapGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void MapGenerator::makeStates() {
std::cout<<oc->regions.size()<<std::endl<<std::flush;
mg::info("oc size", oc->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);
Expand Down
7 changes: 3 additions & 4 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "application.cpp"

std::string VERSION = "0.5.2";
std::string VERSION = "0.5.3";

int main()
{
Expand Down

0 comments on commit 6662c36

Please sign in to comment.