summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
committerrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
commit2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e (patch)
tree693ef021b01bb1997dedae1760426f25d21dadc6 /src/network/core
parent420d358fef4d88942a5df168ab5c78d68060fe35 (diff)
downloadopenttd-2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e.tar.xz
(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp_game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index 4f0202c60..64b7ba97a 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -18,6 +18,7 @@
#include "../network.h"
#include "../network_internal.h"
#include "../../debug.h"
+#include "../../error.h"
#include "table/strings.h"
@@ -46,8 +47,7 @@ NetworkRecvStatus NetworkGameSocketHandler::CloseConnection(bool error)
if (!_network_server && _networking) {
_switch_mode = SM_MENU;
_networking = false;
- extern StringID _switch_mode_errorstr;
- _switch_mode_errorstr = STR_NETWORK_ERROR_LOSTCONNECTION;
+ ShowErrorMessage(STR_NETWORK_ERROR_LOSTCONNECTION, INVALID_STRING_ID, WL_CRITICAL);
return NETWORK_RECV_STATUS_CONN_LOST;
}