diff options
author | Mattes D <github@xoft.cz> | 2014-09-15 16:50:40 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-15 16:50:40 +0200 |
commit | d772bc032f12bceac2d974ad9165597edabe5b0a (patch) | |
tree | 609648207d15494012b08f95e38b2a156ec50c93 /Tools/QtBiomeVisualiser/MainWindow.cpp | |
parent | QtBiomeVisualiser: Extended zoom down below 100%. (diff) | |
download | cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar.gz cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar.bz2 cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar.lz cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar.xz cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.tar.zst cuberite-d772bc032f12bceac2d974ad9165597edabe5b0a.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp index 8b98c0b0e..21fb1a0c0 100644 --- a/Tools/QtBiomeVisualiser/MainWindow.cpp +++ b/Tools/QtBiomeVisualiser/MainWindow.cpp @@ -39,19 +39,7 @@ MainWindow::~MainWindow() void MainWindow::generate() { QString worldIni = QFileDialog::getOpenFileName(this, tr("Open world.ini"), QString(), tr("world.ini (world.ini)")); - cIniFile ini; - if (!ini.ReadFile(worldIni.toStdString())) - { - return; - } - int seed = ini.GetValueSetI("Seed", "Seed", 0); - bool unused = false; - cBiomeGen * biomeGen = cBiomeGen::CreateBiomeGen(ini, seed, unused); - if (biomeGen == nullptr) - { - return; - } - m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(biomeGen))); + m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(worldIni))); m_BiomeView->redraw(); } |