[Tux4kids-commits] r1168 - tuxmath/branches/lan/src

akash gangil gangil-guest at alioth.debian.org
Thu Jul 9 21:01:39 UTC 2009


Author: gangil-guest
Date: 2009-07-09 21:01:38 +0000 (Thu, 09 Jul 2009)
New Revision: 1168

Modified:
   tuxmath/branches/lan/src/game.c
Log:
changing conditions

Modified: tuxmath/branches/lan/src/game.c
===================================================================
--- tuxmath/branches/lan/src/game.c	2009-07-09 19:51:38 UTC (rev 1167)
+++ tuxmath/branches/lan/src/game.c	2009-07-09 21:01:38 UTC (rev 1168)
@@ -1487,17 +1487,13 @@
     {
       if ((rand() % 2) == 0 || num_comets_alive == 0)
       {
-         while(strncmp(command,"SEND_QUESTION",strlen("SEND_QUESTION"))!=0)
-         {
-          check_messages(buf);
-          seperate_commmand_and_buf(command,buf);
-         }
+        if(strncmp(command,"SEND_QUESTION",strlen("SEND_QUESTION"))!=0)
+        {
           if (add_comet(buf))
           {
             num_attackers--;
           }
-        
-        
+        }
       }
     }
     else




More information about the Tux4kids-commits mailing list