diff options
author | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
commit | bea3fe2b8b2352d471149a4c914f93c58aa11b83 (patch) | |
tree | 69bd9a4b24333a7da3f2f3d11af4aafff5c92583 /src/network | |
parent | bc7e9514d247581e085b80a71dabbd6e635e5ded (diff) | |
download | openttd-bea3fe2b8b2352d471149a4c914f93c58aa11b83.tar.xz |
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index d0bdb4fd4..cd1fd0c1c 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -686,7 +686,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN) } break; default: // Join another company (companies 1-8 (index 0-7)) - if (!Company::IsValidID(playas) || !IsHumanCompany(playas)) { + if (!Company::IsValidHumanID(playas)) { SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_COMPANY_MISMATCH); return; } |