(svn r23821) -Fix-ish: when replaying a command log, ignore the command limit

This commit is contained in:
rubidium 2012-01-17 21:12:19 +00:00
parent f0603a6204
commit 752474cec3

View File

@ -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) {