diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-14 19:25:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-14 19:25:18 +0000 |
commit | 2bf3d14dfca00d62469b115428cdb26e7540fc9c (patch) | |
tree | 6105bafccb126db7c1e070468a8b12c6ea7dbe10 /network_data.h | |
parent | fbb794d450bd900a9a0b3326f20daa931781261f (diff) | |
download | openttd-2bf3d14dfca00d62469b115428cdb26e7540fc9c.tar.xz |
(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.
Diffstat (limited to 'network_data.h')
-rw-r--r-- | network_data.h | 16 |
1 files changed, 8 insertions, 8 deletions
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 { |