diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 09:04:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 09:04:41 +0000 |
commit | 2555522eabd5cb16c480aab755f5d3dd580ddae4 (patch) | |
tree | 4ae77c24b45658c66e26f09ab6c6df1bc2165945 /src/network/network_type.h | |
parent | 6fa962b867a4983d67bc8acd2c8a3ed5c7ce3dc3 (diff) | |
download | openttd-2555522eabd5cb16c480aab755f5d3dd580ddae4.tar.xz |
(svn r19809) -Codechange: make some unnamed network related enums/defines static const variables
Diffstat (limited to 'src/network/network_type.h')
-rw-r--r-- | src/network/network_type.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/network/network_type.h b/src/network/network_type.h index f023fe985..08bd7756d 100644 --- a/src/network/network_type.h +++ b/src/network/network_type.h @@ -16,21 +16,20 @@ #ifdef ENABLE_NETWORK -enum { - /** How many clients can we have */ - MAX_CLIENTS = 255, - - /** - * The number of slots; must be at least 1 more than MAX_CLIENTS. It must - * furthermore be less than or equal to 256 as client indices (sent over - * the network) are 8 bits. It needs 1 more for the dedicated server. - */ - MAX_CLIENT_SLOTS = 256, - - /** How many vehicle/station types we put over the network */ - NETWORK_VEHICLE_TYPES = 5, - NETWORK_STATION_TYPES = 5, -}; +/** How many clients can we have */ +static const uint MAX_CLIENTS = 255; + +/** + * The number of slots; must be at least 1 more than MAX_CLIENTS. It must + * furthermore be less than or equal to 256 as client indices (sent over + * the network) are 8 bits. It needs 1 more for the dedicated server. + */ +static const uint MAX_CLIENT_SLOTS = 256; + +/** How many vehicle types we put over the network */ +static const uint NETWORK_VEHICLE_TYPES = 5; +/** How many station types we put over the network */ +static const uint NETWORK_STATION_TYPES = 5; /** 'Unique' identifier to be given to clients */ enum ClientID { |