[gcompris] minor: maze: fix compiler warning



commit 979c5660a35c5689449b19ceef355eec01a559e3
Author: Peter Albrecht <pa-dev gmx de>
Date:   Thu Sep 27 22:41:40 2012 +0200

    minor: maze: fix compiler warning
    
    Since we removed the level-check as end condition for run-fast-mode and
    replaced it by a check for gamewon, we do not need the "level" variable
    any more. Nice of the compiler to point me to it. ;)

 src/maze-activity/maze.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/maze-activity/maze.c b/src/maze-activity/maze.c
index c162e53..6cb28dd 100644
--- a/src/maze-activity/maze.c
+++ b/src/maze-activity/maze.c
@@ -1078,7 +1078,7 @@ static void one_step(guint richting)
 
 static gint key_press(guint keyval, gchar *commit_str, gchar *preedit_str)
 {
-  guint richting=0,level=gcomprisBoard->level;
+  guint richting=0;
 
   if(board_paused)
     return FALSE;
@@ -1217,7 +1217,7 @@ toggle_fast_mode ()
 
 static gint key_press_2D_relative(guint keyval, gchar *commit_str, gchar *preedit_str)
 {
-  guint richting=0,level=gcomprisBoard->level;
+  guint richting=0;
 
   switch (keyval)
     {



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