diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-19 13:46:03 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-19 13:46:03 +0000 |
commit | a8a96dab91866bce0742f680260d653728e24691 (patch) | |
tree | 007b355cf5700c6c575f6829346db6db837cd2b9 /src/gui/char_select.cpp | |
parent | 4f92acafbe35fb0ad9d5d0e03b3cbbf7967a7019 (diff) | |
download | mana-a8a96dab91866bce0742f680260d653728e24691.tar.gz mana-a8a96dab91866bce0742f680260d653728e24691.tar.bz2 mana-a8a96dab91866bce0742f680260d653728e24691.tar.xz mana-a8a96dab91866bce0742f680260d653728e24691.zip |
the game doesn't crash anymore when the map server is down
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 629a0d63..3e5a4b09 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -249,6 +249,12 @@ void CharSelectDialog::serverCharSelect() } RFIFOSKIP(3); } + else if (RFIFOW(0) == 0x0081) { + new OkDialog(this, "Error", + "Map server is down, please try again later"); + close_session(); + state = LOGIN; + } // Todo: add other packets } |