[Tux4kids-commits] r1337 - tuxmath/branches/lan/server

akash gangil gangil-guest at alioth.debian.org
Mon Aug 3 11:08:47 UTC 2009


Author: gangil-guest
Date: 2009-08-03 11:08:47 +0000 (Mon, 03 Aug 2009)
New Revision: 1337

Modified:
   tuxmath/branches/lan/server/server.c
Log:
Working on identifying the bug , minor fix encountered enroute doing this

Modified: tuxmath/branches/lan/server/server.c
===================================================================
--- tuxmath/branches/lan/server/server.c	2009-08-03 06:59:27 UTC (rev 1336)
+++ tuxmath/branches/lan/server/server.c	2009-08-03 11:08:47 UTC (rev 1337)
@@ -748,25 +748,24 @@
 
 void game_msg_next_question(void)
 {
-  MC_FlashCard fc;
-   if (!MC_NextQuestion(&fc))
-  { 
-    /* no more questions available */
-    printf("MC_NextQuestion() returned NULL - no questions available\n");
-    return;
-  }
+  if (!MC_NextQuestion(&flash))
+   { 
+     /* no more questions available */
+     printf("MC_NextQuestion() returned NULL - no questions available\n");
+     return;
+   }
 
 #ifdef LAN_DEBUG
     printf("WILL SEND >>\n");  
     printf("QUESTION_ID       :      %d\n", flash.question_id);
     printf("FORMULA_STRING    :      %s\n", flash.formula_string);
     printf("ANSWER STRING     :      %s\n", flash.answer_string);
-    printf("ANSWER            :      %d\n",flash.answer);
-    printf("DIFFICULTY        :      %d\n",flash.difficulty);
+    printf("ANSWER            :      %d\n", flash.answer);
+    printf("DIFFICULTY        :      %d\n", flash.difficulty);
 #endif
 
 
-  add_question(&fc);
+  add_question(&flash);
                   
 /*  for(n = 0; n < MAX_CLIENTS && client[n].sock; n++)
   {




More information about the Tux4kids-commits mailing list