mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r23821) -Fix-ish: when replaying a command log, ignore the command limit
This commit is contained in:
parent
8a1ac5a128
commit
ede8c86f77
|
@ -262,7 +262,12 @@ static void DistributeCommandPacket(CommandPacket cp, const NetworkClientSocket
|
||||||
*/
|
*/
|
||||||
static void DistributeQueue(CommandQueue *queue, const NetworkClientSocket *owner)
|
static void DistributeQueue(CommandQueue *queue, const NetworkClientSocket *owner)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_DUMP_COMMANDS
|
||||||
|
/* When replaying we do not want this limitation. */
|
||||||
|
int to_go = MAX_UINT16;
|
||||||
|
#else
|
||||||
int to_go = _settings_client.network.commands_per_frame;
|
int to_go = _settings_client.network.commands_per_frame;
|
||||||
|
#endif
|
||||||
|
|
||||||
CommandPacket *cp;
|
CommandPacket *cp;
|
||||||
while (--to_go >= 0 && (cp = queue->Pop(true)) != NULL) {
|
while (--to_go >= 0 && (cp = queue->Pop(true)) != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue