(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.

This commit is contained in:
rubidium 2009-09-30 13:32:39 +00:00
parent d3cfacdbf0
commit 124e543b1d
1 changed files with 6 additions and 1 deletions

View File

@ -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;