summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-11 20:01:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-11 20:01:40 +0300
commit5019ae8009921a95770959b5f5a92854203d2755 (patch)
treec5de059615d72f1afd19983b6ec832c905aae222 /src/gui
parent7212c1c8ebcbc6a76f3c1367b18b09521009470c (diff)
downloadmanaverse-5019ae8009921a95770959b5f5a92854203d2755.tar.gz
manaverse-5019ae8009921a95770959b5f5a92854203d2755.tar.bz2
manaverse-5019ae8009921a95770959b5f5a92854203d2755.tar.xz
manaverse-5019ae8009921a95770959b5f5a92854203d2755.zip
Remove support for legacy configuration in outfits.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/outfitwindow.cpp8
-rw-r--r--src/gui/windows/outfitwindow.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index 0e5885089..290cf924c 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -134,13 +134,9 @@ OutfitWindow::~OutfitWindow()
save();
}
-void OutfitWindow::load(const bool oldConfig)
+void OutfitWindow::load()
{
- const Configuration *cfg;
- if (oldConfig)
- cfg = &config;
- else
- cfg = &serverConfig;
+ const Configuration *cfg = &serverConfig;
memset(mItems, -1, sizeof(mItems));
memset(mItemColors, 1, sizeof(mItemColors));
diff --git a/src/gui/windows/outfitwindow.h b/src/gui/windows/outfitwindow.h
index b10388005..a6d31d3be 100644
--- a/src/gui/windows/outfitwindow.h
+++ b/src/gui/windows/outfitwindow.h
@@ -64,7 +64,7 @@ class OutfitWindow final : public Window,
void mouseReleased(MouseEvent &event) override final;
- void load(const bool oldConfig = false);
+ void load();
void wearOutfit(const int outfit, const bool unwearEmpty = true,
const bool select = false);