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
commit57a44b42433b59762a591031feddc14ccca73009 (patch)
tree6105bafccb126db7c1e070468a8b12c6ea7dbe10 /network.h
parente4eb0c672a9c6f492924a4a0b6b94665826415d6 (diff)
downloadopenttd-57a44b42433b59762a591031feddc14ccca73009.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 {