gcompris r3708 - in trunk: . src/boards



Author: bcoudoin
Date: Fri Jan 30 23:24:46 2009
New Revision: 3708
URL: http://svn.gnome.org/viewvc/gcompris?rev=3708&view=rev

Log:
	Prevent an evil crash bug when the kids press 2 buttons at the same time



Modified:
   trunk/ChangeLog
   trunk/src/boards/menu2.c

Modified: trunk/src/boards/menu2.c
==============================================================================
--- trunk/src/boards/menu2.c	(original)
+++ trunk/src/boards/menu2.c	Fri Jan 30 23:24:46 2009
@@ -661,10 +661,13 @@
 
 	}
       else
-	{
+	// This should prevent an evil crash bug
+	// when the kids press 2 buttons at the same time
+	if (event->button.button == 1)
+	 {
 	  gc_sound_play_ogg ("sounds/level.wav", NULL);
 	  gc_board_run_next (board);
-	}
+	 }
 
       break;
 



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