summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 67b887022..e12ff98a7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -49,6 +49,7 @@
#include "input/keyboardconfig.h"
#include "gui/chatconsts.h"
+#include "gui/dialogsmanager.h"
#include "gui/gui.h"
#include "gui/viewport.h"
#include "gui/windowmenu.h"
@@ -156,7 +157,6 @@ BotCheckerWindow *botCheckerWindow = nullptr;
SocialWindow *socialWindow = nullptr;
QuestsWindow *questsWindow = nullptr;
WindowMenu *windowMenu = nullptr;
-UpdaterWindow *updaterWindow = nullptr;
ActorManager *actorManager = nullptr;
CommandHandler *commandHandler = nullptr;
@@ -690,7 +690,7 @@ void Game::slowLogic()
map->saveExtraLayer();
}
}
- closeDialogs();
+ DialogsManager::closeDialogs();
client->setFramerate(config.getIntValue("fpslimit"));
mNextAdjustTime = cur_time + adjustDelay;
if (client->getState() != STATE_ERROR)
@@ -1187,16 +1187,6 @@ void Game::clearKeysArray()
}
}
-void Game::closeDialogs()
-{
- Client::closeDialogs();
- if (deathNotice)
- {
- deathNotice->scheduleDelete();
- deathNotice = nullptr;
- }
-}
-
void Game::videoResized(const int width, const int height)
{
if (viewport)
@@ -1204,12 +1194,3 @@ void Game::videoResized(const int width, const int height)
if (windowMenu)
windowMenu->setPosition(width - windowMenu->getWidth(), 0);
}
-
-void Game::createUpdaterWindow()
-{
- updaterWindow = new UpdaterWindow(client->getUpdateHost(),
- client->getOldUpdates(),
- false,
- 0);
- updaterWindow->postInit();
-}