summaryrefslogtreecommitdiff
path: root/src/net/network.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-26 19:38:02 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-26 19:38:02 +0000
commit5f078fc572eb28d9a62a288e7f708d66ec0fc910 (patch)
treea8f53c9a5bfe49c0382ce57968c2842ba1ea480c /src/net/network.cpp
parent1e67cb01df788e02c7b248bb22b144d3d8b76cef (diff)
downloadmana-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.cpp2
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;
}