From ede8c86f778583e9dc5b1cb20aaa450eff0e6c6c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 17 Jan 2012 21:12:19 +0000 Subject: (svn r23821) -Fix-ish: when replaying a command log, ignore the command limit --- src/network/network_command.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/network') diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp index c5ec83e28..ef8a33804 100644 --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -262,7 +262,12 @@ static void DistributeCommandPacket(CommandPacket cp, const NetworkClientSocket */ 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; +#endif CommandPacket *cp; while (--to_go >= 0 && (cp = queue->Pop(true)) != NULL) { -- cgit v1.2.3-70-g09d2