Don't accept 'team gone' command right after 'next turn' cmd
authorunc0rr
Mon, 11 May 2009 18:57:39 +0000
changeset 2043 1f2b91b5e7ef
parent 2042 905c554d62e6
child 2044 8548f5be2d72
Don't accept 'team gone' command right after 'next turn' cmd
hedgewars.kdevelop
hedgewars/uIO.pas
--- a/hedgewars.kdevelop	Mon May 11 18:56:55 2009 +0000
+++ b/hedgewars.kdevelop	Mon May 11 18:57:39 2009 +0000
@@ -51,6 +51,7 @@
       <filetype>*.hs</filetype>
       <filetype>*.pro</filetype>
       <filetype>Find*.cmake</filetype>
+      <filetype>*.cfg</filetype>
     </filetypes>
     <blacklist/>
     <general>
--- a/hedgewars/uIO.pas	Mon May 11 18:56:55 2009 +0000
+++ b/hedgewars/uIO.pas	Mon May 11 18:57:39 2009 +0000
@@ -249,6 +249,7 @@
 tmpflag:= true;
 
 while (headcmd <> nil)
+	and tmpflag
 	and ((GameTicks = headcmd^.Time)
 		or (headcmd^.cmd = 's')
 		or (headcmd^.cmd = 'F')) do
@@ -310,6 +311,7 @@
 			true);
 
 isInLag:= (headcmd = nil) and tmpflag and not CurrentTeam^.hasGone;
+
 if isInLag then fastUntilLag:= false
 end;