Include client IDs in network server command logs
This commit is contained in:
@@ -113,10 +113,11 @@ void UpdateNetworkGameWindow();
|
||||
*/
|
||||
struct CommandPacket : CommandContainer {
|
||||
/** Make sure the pointer is nullptr. */
|
||||
CommandPacket() : next(nullptr), company(INVALID_COMPANY), frame(0), my_cmd(false) {}
|
||||
CommandPacket() : next(nullptr), frame(0), client_id(INVALID_CLIENT_ID), company(INVALID_COMPANY), my_cmd(false) {}
|
||||
CommandPacket *next; ///< the next command packet (if in queue)
|
||||
CompanyID company; ///< company that is executing the command
|
||||
uint32 frame; ///< the frame in which this packet is executed
|
||||
ClientID client_id; ///< originating client ID (or INVALID_CLIENT_ID if not specified)
|
||||
CompanyID company; ///< company that is executing the command
|
||||
bool my_cmd; ///< did the command originate from "me"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user