diff options
author | Mattes D <github@xoft.cz> | 2014-10-28 22:29:46 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-28 22:29:46 +0100 |
commit | 791f8912125b8b522b8ba197f34c9e2ffb286911 (patch) | |
tree | eae9d305bd7ad06e988a6db4a03d760ded42a6ef /Tools/QtBiomeVisualiser/MainWindow.cpp | |
parent | cIntGen: Added a virtual destructor. (diff) | |
parent | QtBiomeVisualiser: Added quick shutdown to region loaders. (diff) | |
download | cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.gz cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.bz2 cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.lz cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.xz cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.zst cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.zip |
Diffstat (limited to 'Tools/QtBiomeVisualiser/MainWindow.cpp')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp index 7853d768e..e6e951b60 100644 --- a/Tools/QtBiomeVisualiser/MainWindow.cpp +++ b/Tools/QtBiomeVisualiser/MainWindow.cpp @@ -8,12 +8,13 @@ #include <QSettings> #include <QDirIterator> #include <QStatusBar> -#include "src/IniFile.h" #include "ChunkSource.h" +#include "src/IniFile.h" #include "src/Generating/BioGen.h" #include "src/StringCompression.h" #include "src/WorldStorage/FastNBT.h" #include "GeneratorSetup.h" +#include "RegionLoader.h" @@ -70,7 +71,7 @@ MainWindow::MainWindow(QWidget * parent) : MainWindow::~MainWindow() { - + RegionLoader::shutdown(); } @@ -172,7 +173,8 @@ void MainWindow::setViewZoom() { return; } - double newZoom = m_ViewZooms[action->data().toInt()]; + m_CurrentZoomLevel = action->data().toInt(); + double newZoom = m_ViewZooms[m_CurrentZoomLevel]; m_BiomeView->setZoomLevel(newZoom); action->setChecked(true); } |