diff options
author | rubidium <rubidium@openttd.org> | 2008-12-24 00:03:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-24 00:03:47 +0000 |
commit | 81f409e8e76fb26370e0639f7846ebbb8f74b2bd (patch) | |
tree | 9167bc72abf5c65151cbc6c136430806ed72c9e5 /src/network | |
parent | e6ff168508515ba4bf130106f100654d65685fd2 (diff) | |
download | openttd-81f409e8e76fb26370e0639f7846ebbb8f74b2bd.tar.xz |
(svn r14733) -Fix (r14730): creating new companies didn't always work as expected.
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 d48efe55e..dcf9f3cb1 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -917,7 +917,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND) * spectator, but that is not allowed any commands. So do an impersonation. The drawback * of this is that the first company's last_built_tile is also updated... */ cp->company = OWNER_BEGIN; - cp->p2 = cs->index; // XXX - UGLY! p2 is mis-used to get the client-id in CmdCompanyCtrl + cp->p2 = cs->client_id; } // The frame can be executed in the same frame as the next frame-packet |