summaryrefslogtreecommitdiff
path: root/network_client.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-21 17:31:10 +0000
committertruelight <truelight@openttd.org>2004-12-21 17:31:10 +0000
commit19e384261584366cfc339a93eff96d7c411a6541 (patch)
tree3ac5effcddc64108d8ab997ed95c5f2a2f7d1bab /network_client.c
parent8ab0190c294b243b9544203a7cdaf6d3c40718d5 (diff)
downloadopenttd-19e384261584366cfc339a93eff96d7c411a6541.tar.xz
(svn r1204) -Add: [Network] Added some cheaters-protection (money-cheat mostly)
Diffstat (limited to 'network_client.c')
-rw-r--r--network_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/network_client.c b/network_client.c
index e5a4d600d..49e9a215f 100644
--- a/network_client.c
+++ b/network_client.c
@@ -377,6 +377,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_ERROR)
_switch_mode_errorstr = STR_NETWORK_ERR_WRONG_PASSWORD;
} else if (error == NETWORK_ERROR_KICKED) {
_switch_mode_errorstr = STR_NETWORK_ERR_KICKED;
+ } else if (error == NETWORK_ERROR_CHEATER) {
+ _switch_mode_errorstr = STR_NETWORK_ERR_CHEATER;
}
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);