mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
d3cfacdbf0
commit
124e543b1d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue