From 5f078fc572eb28d9a62a288e7f708d66ec0fc910 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 26 Sep 2005 19:38:02 +0000 Subject: Now error message is displayed properly when the map server is offline. --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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: -- cgit v1.2.3-70-g09d2