summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index a81252b6c..021943822 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -567,7 +567,7 @@ void Game::logic()
if (map)
map->saveExtraLayer();
}
- Client::closeDialogs();
+ closeDialogs();
Client::setFramerate(config.getIntValue("fpslimit"));
if (logger)
{
@@ -1875,3 +1875,13 @@ void Game::clearKeysArray()
mLastKeys[f].cnt = 0;
}
}
+
+void Game::closeDialogs()
+{
+ Client::closeDialogs();
+ if (deathNotice)
+ {
+ deathNotice->scheduleDelete();
+ deathNotice = 0;
+ }
+}