summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-15 16:50:40 +0200
committerMattes D <github@xoft.cz>2014-09-15 16:50:40 +0200
commitd772bc032f12bceac2d974ad9165597edabe5b0a (patch)
tree609648207d15494012b08f95e38b2a156ec50c93 /Tools/QtBiomeVisualiser/MainWindow.cpp
parentQtBiomeVisualiser: Extended zoom down below 100%. (diff)
downloadcuberite-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 'Tools/QtBiomeVisualiser/MainWindow.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp14
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();
}