[gcompris/gcomprixogoo] Fixed superbrain by Julian Gilbey. In some case the proposesed solution was wrong. This is a long la



commit a6c03782dc8d9de0da358babb218bd36397c5e3e
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Apr 26 22:21:00 2010 +0200

    Fixed superbrain by Julian Gilbey. In some case the proposesed solution
    was wrong. This is a long lasting bug.

 src/superbrain-activity/superbrain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/superbrain-activity/superbrain.c b/src/superbrain-activity/superbrain.c
index c0f4864..dffc23c 100644
--- a/src/superbrain-activity/superbrain.c
+++ b/src/superbrain-activity/superbrain.c
@@ -558,7 +558,7 @@ static void mark_pieces()
 	      g_object_set (piece->misplaced, "visibility", GOO_CANVAS_ITEM_VISIBLE, NULL);
 	    done = TRUE;
 	  }
-      } while (!done && j++!=number_of_piece);
+      } while (!done && ++j!=number_of_piece);
     }
 
   /* Display the matermind information to the user */



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