From 2bf3d14dfca00d62469b115428cdb26e7540fc9c Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 14 May 2005 19:25:18 +0000 Subject: (svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security" - CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited. --- network_data.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'network_data.h') diff --git a/network_data.h b/network_data.h index cc927150c..8550cd632 100644 --- a/network_data.h +++ b/network_data.h @@ -33,14 +33,14 @@ typedef struct Packet { typedef struct CommandPacket { struct CommandPacket *next; - byte player; - uint32 cmd; - uint32 p1; - uint32 p2; - uint32 tile; // Always make it uint32, so it is bigmap compatible - uint32 dp[20]; // decode_params - uint32 frame; // In which frame must this packet be executed? - byte callback; + byte player; /// player that is executing the command (PlayerID) + uint32 cmd; /// command being executed + uint32 p1; /// parameter p1 + uint32 p2; /// parameter p2 + uint32 tile; /// tile command being executed on ; always make it uint32, so it is bigmap compatible (TileIndex) + uint32 dp[20]; /// _decode_parameters (for sending strings, etc.) + uint32 frame; /// the frame in which this packet is executed + byte callback; /// any callback function executed upon successful completion of the command } CommandPacket; typedef enum { -- cgit v1.2.3-54-g00ecf