From 124e543b1d7c100cd86213b9079df58834dd3d1e Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 30 Sep 2009 13:32:39 +0000 Subject: (svn r17667) -Fix [FS#3245]: autopause tried to (un)pause the server every tick when the pause command only gets processed once every frame_freq ticks. So it would spam the console with duplicate attempts. --- src/network/network.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/network/network.cpp b/src/network/network.cpp index 5622be20c..4990237a3 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -1019,7 +1019,12 @@ void NetworkGameLoop() cp->company = (CompanyID)company; } #endif /* DEBUG_DUMP_COMMANDS */ - CheckMinActiveClients(); + if (_frame_counter >= _frame_counter_max) { + /* Only check for active clients just before we're going to send out + * the commands so we don't send multiple pause/unpause commands when + * the frame_freq is more than 1 tick. */ + CheckMinActiveClients(); + } bool send_frame = false; -- cgit v1.2.3-70-g09d2