summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-14 19:25:18 +0000
committerDarkvater <darkvater@openttd.org>2005-05-14 19:25:18 +0000
commit2bf3d14dfca00d62469b115428cdb26e7540fc9c (patch)
tree6105bafccb126db7c1e070468a8b12c6ea7dbe10 /network.h
parentfbb794d450bd900a9a0b3326f20daa931781261f (diff)
downloadopenttd-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.h')
-rw-r--r--network.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/network.h b/network.h
index 87bdd6306..752cb6945 100644
--- a/network.h
+++ b/network.h
@@ -92,13 +92,13 @@ typedef struct NetworkPlayerInfo {
} NetworkPlayerInfo;
typedef struct NetworkClientInfo {
- uint16 client_index; // Index of the client (same as ClientState->index)
- char client_name[NETWORK_CLIENT_NAME_LENGTH]; // Name of the client
- byte client_lang; // The language of the client
- byte client_playas; // As which player is this client playing
- uint32 client_ip; // IP-address of the client (so he can be banned)
- uint16 join_date; // Gamedate the player has joined
- char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him
+ uint16 client_index; /// Index of the client (same as ClientState->index)
+ char client_name[NETWORK_CLIENT_NAME_LENGTH]; /// Name of the client
+ byte client_lang; /// The language of the client
+ byte client_playas; /// As which player is this client playing (PlayerID)
+ uint32 client_ip; /// IP-address of the client (so he can be banned)
+ uint16 join_date; /// Gamedate the player has joined
+ char unique_id[NETWORK_NAME_LENGTH]; /// Every play sends an unique id so we can indentify him
} NetworkClientInfo;
typedef struct NetworkGameList {