[quadrapassel/gnome-3-8] Revert "Allow preview next block with pick difficult block"



commit 4c9fe243d2b15c382a59d202af2c9bfea34e858a
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Wed May 22 16:08:38 2013 -0500

    Revert "Allow preview next block with pick difficult block"
    
    This reverts commit 31ea50142c3570b6f6e6a35129521689ec7e7af2.

 src/game.vala |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 5ce78ca..31e9eb2 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -311,9 +311,7 @@ public class Game : Object
             }
         }
 
-        if (pick_difficult_blocks)
-            next_shape = pick_difficult_shape ();
-        else
+        if (!pick_difficult_blocks)
             next_shape = pick_random_shape ();
     }
 
@@ -428,12 +426,13 @@ public class Game : Object
 
     private void add_shape ()
     {
-        shape = (owned) next_shape;
-
         if (pick_difficult_blocks)
-            next_shape = pick_difficult_shape ();
+            shape = pick_difficult_shape ();
         else
+        {
+            shape = (owned) next_shape;
             next_shape = pick_random_shape ();
+        }
 
         foreach (var b in shape.blocks)
         {


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