Don't send empty packets when spectating (probably fixes queue error when spectating)
authorunc0rr
Thu, 08 Jan 2009 18:01:30 +0000
changeset 1610 d52f62c9fc09
parent 1609 eff63adf62a3
child 1611 fe6dd0bd1886
Don't send empty packets when spectating (probably fixes queue error when spectating)
hedgewars/uGame.pas
--- a/hedgewars/uGame.pas	Thu Jan 08 18:00:20 2009 +0000
+++ b/hedgewars/uGame.pas	Thu Jan 08 18:01:30 2009 +0000
@@ -35,7 +35,8 @@
 var i: LongInt;
 begin
 if isPaused then exit;
-if not CurrentTeam^.ExtDriven then
+if (not CurrentTeam^.ExtDriven)
+	and not ((GameType = gmtSave) or (fastUntilLag and (GameType = gmtNet))) then
    begin
    NetGetNextCmd; // its for the case of receiving "/say" message
    isInLag:= false;