diff options
author | rubidium <rubidium@openttd.org> | 2008-11-17 16:15:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-11-17 16:15:55 +0000 |
commit | ed649dddbad311cb8f60a8e50c2cb66b9b8b1138 (patch) | |
tree | 1f40fa2e6642fb17b4da48e859e365462a3c656e /src/network/network_gui.cpp | |
parent | 7bc5a3758ba5da5860b7cb21d881688361f31e47 (diff) | |
download | openttd-ed649dddbad311cb8f60a8e50c2cb66b9b8b1138.tar.xz |
(svn r14588) -Fix [FS#2414]: the range for kicking/banning clients is based on the maximum number of clients, not the maximum number of companies.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index fefdde532..b0bf24f25 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1416,8 +1416,9 @@ static const NetworkClientInfo *NetworkFindClientInfo(byte client_no) // Here we start to define the options out of the menu static void ClientList_Kick(byte client_no) { - if (client_no < MAX_COMPANIES) + if (client_no < MAX_CLIENTS) { SEND_COMMAND(PACKET_SERVER_ERROR)(DEREF_CLIENT(client_no), NETWORK_ERROR_KICKED); + } } static void ClientList_Ban(byte client_no) @@ -1431,7 +1432,7 @@ static void ClientList_Ban(byte client_no) } } - if (client_no < MAX_COMPANIES) { + if (client_no < MAX_CLIENTS) { SEND_COMMAND(PACKET_SERVER_ERROR)(DEREF_CLIENT(client_no), NETWORK_ERROR_KICKED); } } |