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/net/network.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/net/network.cpp')
-rw-r--r-- | src/net/network.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 2d48fc8c..6f852529 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -217,6 +217,7 @@ void flush() if (ret <= 0) { logger->log("Error in SDLNet_TCP_Recv(): %s", SDLNet_GetError()); + errorMessage = "You got disconnected from server"; state = ERROR_STATE; return; } @@ -232,6 +233,7 @@ void flush() if (ret < (int)out_size) { logger->log("Error in SDLNet_TCP_Send(): %s", SDLNet_GetError()); + errorMessage = "You got disconnected from server"; state = ERROR_STATE; return; } |