[Tux4kids-commits] r1265 - tuxmath/branches/lan/src
akash gangil
gangil-guest at alioth.debian.org
Fri Jul 24 09:58:01 UTC 2009
Author: gangil-guest
Date: 2009-07-24 09:58:00 +0000 (Fri, 24 Jul 2009)
New Revision: 1265
Modified:
tuxmath/branches/lan/src/game.c
tuxmath/branches/lan/src/mathcards.c
Log:
Works fine now , comets disappear if other client answers the question or the comets crashes into the igloo
Modified: tuxmath/branches/lan/src/game.c
===================================================================
--- tuxmath/branches/lan/src/game.c 2009-07-24 09:34:31 UTC (rev 1264)
+++ tuxmath/branches/lan/src/game.c 2009-07-24 09:58:00 UTC (rev 1265)
@@ -523,7 +523,12 @@
{
if(!comet_ques)
return 0;
- comet_ques->alive=0;
+ comet_ques->alive = 0;
+ comet_ques->expl = 0;
+ comet_ques->city = 0;
+ comet_ques->x = 0;
+ comet_ques->y = 0;
+ comet_ques->answer = 0;
num_comets_alive--;
comet_ques->flashcard.formula_string[0] = '\0';
comet_ques->flashcard.answer_string[0] = '\0';
Modified: tuxmath/branches/lan/src/mathcards.c
===================================================================
--- tuxmath/branches/lan/src/mathcards.c 2009-07-24 09:34:31 UTC (rev 1264)
+++ tuxmath/branches/lan/src/mathcards.c 2009-07-24 09:58:00 UTC (rev 1265)
@@ -2114,6 +2114,7 @@
strncpy(fc->answer_string, " ", MC_ANSWER_LEN);
fc->answer = 0;
fc->difficulty = 0;
+ fc->question_id=0;
}
int MC_FlashCardGood(const MC_FlashCard* fc)
More information about the Tux4kids-commits
mailing list