summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-30 23:53:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-30 23:53:26 +0300
commit3d70a4744e2294fbcfaedb9a63578ed93fa9d7c5 (patch)
treeb39b8569b98d4bc202efb8d90ff3555a4a8ec5a5 /src/game.cpp
parentf1a357b3ce182b0128f2cf34872f0316107b9750 (diff)
downloadplus-3d70a4744e2294fbcfaedb9a63578ed93fa9d7c5.tar.gz
plus-3d70a4744e2294fbcfaedb9a63578ed93fa9d7c5.tar.bz2
plus-3d70a4744e2294fbcfaedb9a63578ed93fa9d7c5.tar.xz
plus-3d70a4744e2294fbcfaedb9a63578ed93fa9d7c5.zip
Hide death message dialog in reconnect.
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;
+ }
+}