changeset 18966:e23cdc70d5aa draft

(svn r23821) -Fix-ish: when replaying a command log, ignore the command limit
author rubidium <rubidium@openttd.org>
date Tue, 17 Jan 2012 21:12:19 +0000
parents c01a90907183
children 564906300417
files src/network/network_command.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_command.cpp
+++ b/src/network/network_command.cpp
@@ -262,7 +262,12 @@
  */
 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) {