summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/charserverhandler.cpp
diff options
context:
space:
mode:
authorblue112 <bluesansdouze@gmail.com>2009-04-20 03:39:21 +0200
committerJared Adams <jaxad0127@gmail.com>2009-04-19 19:50:06 -0600
commitd6dbd51deeae42a621534e6565aaeb468ecc5d17 (patch)
tree0ad4da3f39bdcbff12ef44cfa68a13677b2042ba /src/net/tmwserv/charserverhandler.cpp
parentd7226f7187df0d54a1f049c86733854f7bfebbe5 (diff)
downloadmana-d6dbd51deeae42a621534e6565aaeb468ecc5d17.tar.gz
mana-d6dbd51deeae42a621534e6565aaeb468ecc5d17.tar.bz2
mana-d6dbd51deeae42a621534e6565aaeb468ecc5d17.tar.xz
mana-d6dbd51deeae42a621534e6565aaeb468ecc5d17.zip
Error server unavailable Add an error box when then game server isn't available (on char selection)
Diffstat (limited to 'src/net/tmwserv/charserverhandler.cpp')
-rw-r--r--src/net/tmwserv/charserverhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/tmwserv/charserverhandler.cpp b/src/net/tmwserv/charserverhandler.cpp
index 9739367b..225c12a8 100644
--- a/src/net/tmwserv/charserverhandler.cpp
+++ b/src/net/tmwserv/charserverhandler.cpp
@@ -214,6 +214,12 @@ void CharServerHandler::handleCharSelectResponse(MessageIn &msg)
state = STATE_CONNECT_GAME;
}
+ else if(errMsg == ERRMSG_FAILURE)
+ {
+ errorMessage = _("No gameservers are available.");
+ mCharInfo->clear();
+ state = STATE_ERROR;
+ }
}
LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot)