summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-30 23:40:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-30 23:40:05 +0300
commitf1a357b3ce182b0128f2cf34872f0316107b9750 (patch)
tree4b68eac0109af8c6569b96f6e8ac1aebd0acc805 /src
parentcefd145c44d73dd7c1d8739cba404418ccb74602 (diff)
downloadmanaplus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.gz
manaplus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.bz2
manaplus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.xz
manaplus-f1a357b3ce182b0128f2cf34872f0316107b9750.zip
Logging state what triggered disconnect dialog creation.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 31d41df78..a81252b6c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -569,6 +569,11 @@ void Game::logic()
}
Client::closeDialogs();
Client::setFramerate(config.getIntValue("fpslimit"));
+ if (logger)
+ {
+ logger->log("Show error message on state: %d",
+ Client::getState());
+ }
disconnectedDialog = new OkDialog(_("Network Error"),
errorMessage, false);
disconnectedDialog->addActionListener(&errorListener);