# HG changeset patch
# User unC0Rr
# Date 1724845012 -7200
# Node ID eb015d6b4a2a113c2ee54a819369742d31d4180a
# Parent  692903667ece60349dbe24d77143fb571a768935
Avoid creating unused string that is quite costly to produce

diff -r 692903667ece -r eb015d6b4a2a hedgewars/uIO.pas
--- a/hedgewars/uIO.pas	Tue Aug 27 17:01:13 2024 +0200
+++ b/hedgewars/uIO.pas	Wed Aug 28 13:36:52 2024 +0200
@@ -470,8 +470,8 @@
     RemoveCmd
     end;
 
-if (headcmd <> nil) and tmpflag and (not CurrentTeam^.hasGone) then
-    checkFails(GameTicks < LongWord(hiTicks shl 16) + headcmd^.loTime,
+if (headcmd <> nil) and tmpflag and (not CurrentTeam^.hasGone) and (GameTicks < LongWord(hiTicks shl 16) + headcmd^.loTime) then
+    checkFails(true,
             'oops, queue error. in buffer: ' + headcmd^.cmd +
             ' (' + IntToStr(GameTicks) + ' > ' +
             IntToStr(hiTicks shl 16 + headcmd^.loTime) + ')',