summaryrefslogtreecommitdiff
path: root/src/game.cpp
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/game.cpp
parentcefd145c44d73dd7c1d8739cba404418ccb74602 (diff)
downloadplus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.gz
plus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.bz2
plus-f1a357b3ce182b0128f2cf34872f0316107b9750.tar.xz
plus-f1a357b3ce182b0128f2cf34872f0316107b9750.zip
Logging state what triggered disconnect dialog creation.
Diffstat (limited to 'src/game.cpp')
-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);