diff options
author | rubidium <rubidium@openttd.org> | 2010-08-19 08:59:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-19 08:59:36 +0000 |
commit | a4c6d07edc4937087e3f2d0b2bff52cc3980b9e2 (patch) | |
tree | 9a939be9e5c3b7bc5a0101cb3077a3d619d2dad8 /src/settings_type.h | |
parent | cfc0df152b40c7109ce6c2e60f80304fc97adb89 (diff) | |
download | openttd-a4c6d07edc4937087e3f2d0b2bff52cc3980b9e2.tar.xz |
(svn r20553) -Feature: allow rate limiting of incoming commands
Diffstat (limited to 'src/settings_type.h')
-rw-r--r-- | src/settings_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h index f5a9a85d4..ba546895c 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -128,6 +128,8 @@ struct NetworkSettings { #ifdef ENABLE_NETWORK uint16 sync_freq; ///< how often do we check whether we are still in-sync uint8 frame_freq; ///< how often do we send commands to the clients + uint16 commands_per_frame; ///< how many commands may be sent each frame_freq frames? + uint16 max_commands_in_queue; ///< how many commands may there be in the incoming queue before dropping the connection? uint16 max_join_time; ///< maximum amount of time, in game ticks, a client may take to join bool pause_on_join; ///< pause the game when people join uint16 server_port; ///< port the server listens on |