diff options
author | truebrain <truebrain@openttd.org> | 2012-01-09 21:22:48 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2012-01-09 21:22:48 +0000 |
commit | 6c7c02eb14f31402021b7f5f33173a93e99f0ac3 (patch) | |
tree | 52be292b530f4fc17278a8d118fc130eb7c10f2c /src/network/network_server.cpp | |
parent | 64605a253ea8c7f4f248ab9f57eaae0b38652df2 (diff) | |
download | openttd-6c7c02eb14f31402021b7f5f33173a93e99f0ac3.tar.xz |
(svn r23780) -Fix [FS#4963] (r23764): also name the two new errors server-side. As extra, split up one of the errors in 3 errors, to be more specific what goes wrong. As cherry on top, make sure on all sides we can never again forget to add such entries on both sides, by introducing an assert_compile()
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r-- | src/network/network_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 72ad4bf3e..dbbe8fe28 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1843,7 +1843,7 @@ void NetworkServer_Tick(bool send_frame) /* Downloading the map... this is the amount of time since starting the saving. */ if (lag > _settings_client.network.max_download_time) { IConsolePrintF(CC_ERROR, "Client #%d is dropped because it took longer than %d ticks to download the map", cs->client_id, _settings_client.network.max_download_time); - cs->SendError(NETWORK_ERROR_TIMEOUT_COMPUTER); + cs->SendError(NETWORK_ERROR_TIMEOUT_MAP); continue; } break; @@ -1853,7 +1853,7 @@ void NetworkServer_Tick(bool send_frame) /* The map has been sent, so this is for loading the map and syncing up. */ if (lag > _settings_client.network.max_join_time) { IConsolePrintF(CC_ERROR, "Client #%d is dropped because it took longer than %d ticks to join", cs->client_id, _settings_client.network.max_join_time); - cs->SendError(NETWORK_ERROR_TIMEOUT_COMPUTER); + cs->SendError(NETWORK_ERROR_TIMEOUT_JOIN); continue; } break; |