gbrainy r372 - branches/STABLE/src



Author: jmas
Date: Tue Jun 17 07:44:25 2008
New Revision: 372
URL: http://svn.gnome.org/viewvc/gbrainy?rev=372&view=rev

Log:
2008-06-11 Jordi Mas <jmas softcatala org>

	*  CalculationWhichNumber.cs: Make sure that two equivalent fractions
         do not show up as valid answers.



Modified:
   branches/STABLE/src/CalculationWhichNumber.cs
   branches/STABLE/src/ChangeLog

Modified: branches/STABLE/src/CalculationWhichNumber.cs
==============================================================================
--- branches/STABLE/src/CalculationWhichNumber.cs	(original)
+++ branches/STABLE/src/CalculationWhichNumber.cs	Tue Jun 17 07:44:25 2008
@@ -98,8 +98,8 @@
 				{
 					if (n == num) continue;
 
-					if (options [(num * 2) + 0] == options [(n * 2) + 0] &&
-						options [(num * 2) + 1] == options [(n * 2) + 1]) {
+					if (options [(num * 2) + 0] / options [(num * 2) + 1] ==
+						options [(n * 2) + 0] / options [(n * 2) + 1]) {
 						duplicated = true;
 						break;
 					}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]