diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-15 23:42:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-15 23:42:18 +0000 |
commit | 7cac86186e8333fc98d2cd7eb863c6a7e5a58378 (patch) | |
tree | 5b4057bdf59208c59da0569dec380a6d35884cd9 /network_server.c | |
parent | 085a6b497fb7c939986a9b95f8f178a83793b029 (diff) | |
download | openttd-7cac86186e8333fc98d2cd7eb863c6a7e5a58378.tar.xz |
(svn r6786) -Codechange: To join a new company CMD_PLAYER_CTRL is executed with so far a
local spectator (awaiting assignment from server). Since a spectator cannot
execute any commands, a local player is impersonated. Move this impersonation
to the server side where CMD_PLAYER_CTRL is handled specially anyways.
Diffstat (limited to 'network_server.c')
-rw-r--r-- | network_server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/network_server.c b/network_server.c index e64f723e3..51c11ba83 100644 --- a/network_server.c +++ b/network_server.c @@ -844,6 +844,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND) } // XXX - UGLY! p2 is mis-used to get the client-id in CmdPlayerCtrl + cp->player = 0; cp->p2 = cs - _clients; } |