(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 8a1ac5a128
commit ede8c86f77
1 changed files with 5 additions and 0 deletions

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