[Tux4kids-commits] r862 - tuxmath/trunk/src
tholy-guest at alioth.debian.org
tholy-guest at alioth.debian.org
Mon Feb 2 02:57:14 UTC 2009
Author: tholy-guest
Date: 2009-02-02 02:57:13 +0000 (Mon, 02 Feb 2009)
New Revision: 862
Modified:
tuxmath/trunk/src/mathcards.c
Log:
Fix bug in not checking max_answer in generating questions.
Modified: tuxmath/trunk/src/mathcards.c
===================================================================
--- tuxmath/trunk/src/mathcards.c 2009-02-01 16:18:05 UTC (rev 861)
+++ tuxmath/trunk/src/mathcards.c 2009-02-02 02:57:13 UTC (rev 862)
@@ -1598,7 +1598,7 @@
r1 *= r2;
ans = ret.difficulty;
}
- } while (ans < 0 && !MC_GetOpt(ALLOW_NEGATIVES) );
+ } while ( (ans < 0 && !MC_GetOpt(ALLOW_NEGATIVES)) || ans > MC_GetOpt(MAX_ANSWER) );
mcdprintf("Constructing answer_string\n");
More information about the Tux4kids-commits
mailing list