gbrainy r369 - trunk/src



Author: jmas
Date: Wed Jun 11 16:57:12 2008
New Revision: 369
URL: http://svn.gnome.org/viewvc/gbrainy?rev=369&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:
   trunk/src/CalculationWhichNumber.cs
   trunk/src/ChangeLog

Modified: trunk/src/CalculationWhichNumber.cs
==============================================================================
--- trunk/src/CalculationWhichNumber.cs	(original)
+++ trunk/src/CalculationWhichNumber.cs	Wed Jun 11 16:57:12 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]