(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user