diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-26 19:38:02 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-26 19:38:02 +0000 |
commit | 5f078fc572eb28d9a62a288e7f708d66ec0fc910 (patch) | |
tree | a8f53c9a5bfe49c0382ce57968c2842ba1ea480c /src/main.cpp | |
parent | 1e67cb01df788e02c7b248bb22b144d3d8b76cef (diff) | |
download | mana-5f078fc572eb28d9a62a288e7f708d66ec0fc910.tar.gz mana-5f078fc572eb28d9a62a288e7f708d66ec0fc910.tar.bz2 mana-5f078fc572eb28d9a62a288e7f708d66ec0fc910.tar.xz mana-5f078fc572eb28d9a62a288e7f708d66ec0fc910.zip |
Now error message is displayed properly when the map server is offline.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 734af6dd..a6fef07c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -75,6 +75,7 @@ Graphics *graphics; int map_address, char_ID; short map_port; unsigned char state; +std::string errorMessage; unsigned char screen_mode; volatile int framesToDraw = 0; @@ -507,7 +508,7 @@ int main(int argc, char *argv[]) break; case ERROR_STATE: logger->log("State: ERROR"); - currentDialog = new ErrorDialog("You got disconnected from the server"); + currentDialog = new ErrorDialog(errorMessage); inputHandler = errorInputHandler; break; default: |