[Tux4kids-commits] r5 - tuxmath/trunk/src

dbruce at alioth.debian.org dbruce at alioth.debian.org
Thu Mar 8 20:56:01 CET 2007


Author: dbruce
Date: 2006-02-07 22:12:59 +0000 (Tue, 07 Feb 2006)
New Revision: 5

Modified:
   tuxmath/trunk/src/options.c
Log:
fixes minor bug in options.c (Debian #336272)


Modified: tuxmath/trunk/src/options.c
===================================================================
--- tuxmath/trunk/src/options.c	2006-01-26 20:51:19 UTC (rev 4)
+++ tuxmath/trunk/src/options.c	2006-02-07 22:12:59 UTC (rev 5)
@@ -141,9 +141,17 @@
 	      
 	      if (key == SDLK_ESCAPE)
 		{
-		  /* Escape key - quit! */
-		  
-		  done = 1;
+                  /* Don't leave options screen if all operations deselected! - DSB */
+                  /* fixes Debian bug #336272 */
+                  int i;
+                  int at_least_one_oper = 0;
+                  for (i =0; i < NUM_OPERS; i++)
+                  {
+                    if (opers[i])
+                      at_least_one_oper = 1;
+                  }
+                  if (at_least_one_oper)
+                    done = 1;
 		}
 	      else if (key == SDLK_DOWN)
 		{




More information about the Tux4kids-commits mailing list